結果

問題 No.948 Bomb vs Dush
ユーザー roarisroaris
提出日時 2019-12-11 01:40:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 72,084 KB
最終ジャッジ日時 2023-09-06 11:49:02
合計ジャッジ時間 4,710 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,312 KB
testcase_01 AC 69 ms
71,456 KB
testcase_02 AC 70 ms
71,524 KB
testcase_03 AC 68 ms
72,084 KB
testcase_04 AC 68 ms
71,760 KB
testcase_05 AC 68 ms
71,656 KB
testcase_06 AC 68 ms
71,644 KB
testcase_07 AC 68 ms
71,888 KB
testcase_08 AC 68 ms
71,516 KB
testcase_09 AC 67 ms
71,608 KB
testcase_10 AC 66 ms
71,608 KB
testcase_11 AC 66 ms
71,888 KB
testcase_12 AC 69 ms
71,692 KB
testcase_13 AC 67 ms
71,572 KB
testcase_14 AC 69 ms
71,568 KB
testcase_15 AC 67 ms
71,772 KB
testcase_16 AC 68 ms
71,380 KB
testcase_17 AC 68 ms
71,952 KB
testcase_18 AC 67 ms
71,756 KB
testcase_19 AC 67 ms
71,448 KB
testcase_20 AC 68 ms
71,520 KB
testcase_21 AC 67 ms
71,576 KB
testcase_22 AC 66 ms
71,500 KB
testcase_23 AC 68 ms
71,952 KB
testcase_24 AC 70 ms
71,512 KB
testcase_25 AC 69 ms
71,416 KB
testcase_26 AC 69 ms
71,416 KB
testcase_27 AC 70 ms
71,776 KB
testcase_28 AC 68 ms
71,468 KB
testcase_29 AC 69 ms
71,768 KB
testcase_30 AC 72 ms
71,648 KB
testcase_31 AC 71 ms
71,860 KB
testcase_32 AC 68 ms
71,916 KB
testcase_33 AC 70 ms
71,640 KB
testcase_34 AC 70 ms
71,408 KB
testcase_35 AC 70 ms
71,692 KB
testcase_36 AC 71 ms
71,856 KB
testcase_37 AC 72 ms
71,672 KB
testcase_38 AC 69 ms
71,724 KB
testcase_39 AC 70 ms
71,636 KB
testcase_40 AC 71 ms
71,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *

r = float(input())
R = float(input())
theta = 2*asin(r/R)

print("{:.10f}".format(2*pi-theta))
print("{:.10f}".format(pi*((R+r)**2-(R-r)**2)*(1-theta/2/pi)+pi*r**2))
0