diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-02-22 14:51:37 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-02-22 14:51:37 +0700 |
commit | 7ebfa64719d4ac86b30075c65f21eafe9097853e (patch) | |
tree | cf9d59c492bd650258cf139d000d45fb6b8357fb /others/volume1/122.scm | |
parent | 7d19f480637e9e880b98dabfbcf8e885b0a2d3b9 (diff) | |
download | cp-7ebfa64719d4ac86b30075c65f21eafe9097853e.tar.gz |
Updare README.md
Diffstat (limited to 'others/volume1/122.scm')
-rw-r--r-- | others/volume1/122.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/others/volume1/122.scm b/others/volume1/122.scm new file mode 100644 index 0000000..63b1032 --- /dev/null +++ b/others/volume1/122.scm @@ -0,0 +1,6 @@ +(define (sqr x) (* x x)) +(let loop ((r (read))) + (unless (eof-object? r) + (let ((a (read)) (b (read))) + (display (if (< (sqr (* r 2)) (+ (sqr a) (sqr b))) "NO\n" "YES\n"))) + (loop (read)))) |