結果
| 問題 |
No.948 Bomb vs Dush
|
| コンテスト | |
| ユーザー |
ttr
|
| 提出日時 | 2020-02-26 21:05:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 176 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-13 15:29:48 |
| 合計ジャッジ時間 | 2,380 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
r = float(input()) R = float(input()) import math t = math.acos(1-2*r**2/R**2) t += 2*(math.pi-t) print(t) s = math.pi*r**2 + math.pi*((R+r)**2-(R-r)**2)*t/math.pi/2 print(s)
ttr