結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2015-11-01 09:44:17 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 401 ms |
コンパイル使用メモリ | 59,684 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 22:45:49 |
合計ジャッジ時間 | 875 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include<iostream> #include<stdio.h> #include<vector> #include<algorithm> #define PI 3.141592 using namespace std; int main(){ int c, ri, ro; cin>> c; cin>> ri>> ro; double r = (ro-ri)/2.0; double vol = PI*(ri+ro)*PI*r*r; printf("%.4f\n", vol*c); return 0; }