結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー cielciel
提出日時 2020-02-08 21:21:51
言語 Crystal
(1.11.2)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 22,034 ms
コンパイル使用メモリ 282,360 KB
実行使用メモリ 4,760 KB
最終ジャッジ日時 2023-09-13 10:16:23
合計ジャッジ時間 22,404 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 3 ms
4,664 KB
testcase_03 WA -
testcase_04 AC 3 ms
4,652 KB
testcase_05 AC 3 ms
4,640 KB
testcase_06 AC 2 ms
4,580 KB
testcase_07 AC 3 ms
4,660 KB
testcase_08 AC 3 ms
4,660 KB
testcase_09 AC 3 ms
4,648 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

c=gets.not_nil!.to_f
a=gets.not_nil!.split.map(&.to_f)
s=((a[1]-a[0])//2)**2*Math::PI
puts "%.9f" % [c*2*Math::PI*s * ((a[1]+a[0])//2)]
0