結果
問題 |
No.89 どんどんドーナツどーんといこう!
|
ユーザー |
|
提出日時 | 2018-02-22 18:40:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-05 23:22:39 |
合計ジャッジ時間 | 1,002 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)