結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー neko_the_shadowneko_the_shadow
提出日時 2017-01-22 12:39:24
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 331 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2024-04-15 19:44:35
合計ジャッジ時間 1,403 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
16,256 KB
testcase_01 AC 22 ms
16,384 KB
testcase_02 AC 23 ms
16,256 KB
testcase_03 AC 23 ms
16,128 KB
testcase_04 AC 27 ms
16,128 KB
testcase_05 AC 22 ms
16,256 KB
testcase_06 AC 23 ms
16,384 KB
testcase_07 AC 24 ms
16,128 KB
testcase_08 AC 24 ms
16,128 KB
testcase_09 AC 24 ms
16,384 KB
testcase_10 AC 23 ms
16,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use math.const)

(let ((c (string->number (read-line))))
    (receive (r R) 
             (apply values (map string->number (string-split (read-line) #\space)))
        (display
            (/ (* (expt pi 2)
                  (expt (- R r) 2)
                  (+ R r)
                  c)
               4))
        (newline)))

0