結果
| 問題 | No.89 どんどんドーナツどーんといこう! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-02 09:32:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-05 23:02:35 |
| 合計ジャッジ時間 | 1,154 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
# coding: utf-8
# yukicoder No.89 どんどんドーナツどーんといこう!
import math
cal = int(input())
r_in, r_out = map(int, input().split())
danmen = ((r_out - r_in) / 2) ** 2 * math.pi
circum = (r_in + r_out) * math.pi
vol_d = danmen * circum
total_cal = cal * vol_d
print("{:.6f}".format(total_cal))