結果

問題 No.98 円を描こう
ユーザー neko_the_shadow
提出日時 2017-01-22 13:00:10
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 298 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-12-23 05:27:59
合計ジャッジ時間 859 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (solve)
    (receive (x y)
             (apply values (map string->number (string-split (read-line) #\space)))
        (let* ((r (* 2 (sqrt (+ (expt x 2) (expt y 2)))))
               (s (ceiling->exact r)))
            (if (= r s) (+ 1 s) s))))

(begin
    (display (solve))
    (newline))
0