about summary refs log tree commit diff
path: root/others/volume1/122.scm
blob: 63b103230fe0e33be9b60c1e13bf2494e23a42d8 (plain) (blame)
1
2
3
4
5
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))))