結果
| 問題 | No.948 Bomb vs Dush |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-04 21:07:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| + 41µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 79,552 KB |
| 最終ジャッジ日時 | 2026-07-29 11:20:37 |
| 合計ジャッジ時間 | 4,438 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
import math r=float(input()) R=float(input()) cos=(R**2+R**2-(2*r)**2)/(2*R*R) rad=2*math.pi-math.acos(cos) print(rad) theta=360*rad/(2*math.pi) area=math.pi*((R+r)**2-(R-r)**2)*theta/360 area+=math.pi*(r**2) print(area)