結果

問題 No.948 Bomb vs Dush
ユーザー 👑 rin204rin204
提出日時 2022-02-14 00:43:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 72,156 KB
最終ジャッジ日時 2023-09-11 15:46:04
合計ジャッジ時間 5,690 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,656 KB
testcase_01 AC 72 ms
71,828 KB
testcase_02 AC 70 ms
72,112 KB
testcase_03 AC 71 ms
71,916 KB
testcase_04 AC 73 ms
72,108 KB
testcase_05 AC 72 ms
71,904 KB
testcase_06 AC 70 ms
71,840 KB
testcase_07 AC 71 ms
71,768 KB
testcase_08 AC 73 ms
72,008 KB
testcase_09 AC 73 ms
71,924 KB
testcase_10 AC 73 ms
71,656 KB
testcase_11 AC 72 ms
71,928 KB
testcase_12 AC 72 ms
71,896 KB
testcase_13 AC 72 ms
71,924 KB
testcase_14 AC 73 ms
71,976 KB
testcase_15 AC 72 ms
72,096 KB
testcase_16 AC 72 ms
71,988 KB
testcase_17 AC 71 ms
71,944 KB
testcase_18 AC 71 ms
72,144 KB
testcase_19 AC 72 ms
71,988 KB
testcase_20 AC 72 ms
71,988 KB
testcase_21 AC 72 ms
71,788 KB
testcase_22 AC 73 ms
71,812 KB
testcase_23 AC 74 ms
72,072 KB
testcase_24 AC 72 ms
71,776 KB
testcase_25 AC 73 ms
71,808 KB
testcase_26 AC 75 ms
72,084 KB
testcase_27 AC 72 ms
71,768 KB
testcase_28 AC 73 ms
72,104 KB
testcase_29 AC 71 ms
71,720 KB
testcase_30 AC 71 ms
71,980 KB
testcase_31 AC 70 ms
71,668 KB
testcase_32 AC 71 ms
72,156 KB
testcase_33 AC 71 ms
71,740 KB
testcase_34 AC 70 ms
71,948 KB
testcase_35 AC 73 ms
71,812 KB
testcase_36 AC 72 ms
71,808 KB
testcase_37 AC 71 ms
71,904 KB
testcase_38 AC 71 ms
71,832 KB
testcase_39 AC 71 ms
71,988 KB
testcase_40 AC 70 ms
71,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

r = float(input())
R = float(input())
theta = 2 * math.atan2(r, (R * R - r * r) ** 0.5)
print(2 * math.pi - theta)
ans = math.pi * ((R + r) ** 2 - (R - r) ** 2) / (2 * math.pi)
ans *= 2 * math.pi - theta
ans += math.pi * r * r
print(ans)
0