結果
| 問題 | No.89 どんどんドーナツどーんといこう! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-22 18:40:49 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 5,000 ms |
| + 85µs | |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-10 20:25:11 |
| 合計ジャッジ時間 | 1,293 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
# 参照したURL http://www.suguru.jp/culture/torus.html
import math
if __name__ == '__main__':
c = int(input())
r_in, r_out = list(map(int, input().split()))
r = (r_out - r_in) / 2
circle = r * r * math.pi
moved_length = (r + r_in) * 2 * math.pi
print(c * circle * moved_length)