結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー cielciel
提出日時 2020-02-08 21:22:17
言語 Crystal
(1.10.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 133 bytes
コンパイル時間 22,459 ms
コンパイル使用メモリ 282,576 KB
実行使用メモリ 4,648 KB
最終ジャッジ日時 2023-09-13 10:17:10
合計ジャッジ時間 21,621 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,648 KB
testcase_01 AC 3 ms
4,636 KB
testcase_02 AC 3 ms
4,584 KB
testcase_03 AC 3 ms
4,548 KB
testcase_04 AC 3 ms
4,632 KB
testcase_05 AC 2 ms
4,636 KB
testcase_06 AC 2 ms
4,560 KB
testcase_07 AC 3 ms
4,448 KB
testcase_08 AC 3 ms
4,556 KB
testcase_09 AC 3 ms
4,500 KB
testcase_10 AC 2 ms
4,608 KB
権限があれば一括ダウンロードができます

ソースコード

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