結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2015-10-12 12:20:59 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 5,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 7,168 KB |
実行使用メモリ | 6,656 KB |
最終ジャッジ日時 | 2024-10-05 22:44:54 |
合計ジャッジ時間 | 927 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#!/usr/bin/python# -*- coding: utf-8 -*-#ハップス・ギュルダンの定理#回転体の体積 = 回転させたい図形の面積*重心が動いた長さimport mathC = int(raw_input())Rs, Rl = map(float, raw_input().split())V = (((Rl - Rs)/2)**2)* math.pi * (Rs + Rl) * math.piprint C * V