結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2016-03-03 22:53:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 57,848 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 22:50:59 |
合計ジャッジ時間 | 984 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include<iostream> #include<cstdio> #include<cmath> using namespace std; #define NMAX 1000000 int main(){ double C,Rin,Rout; double PI=acos(-1.0); cin>>C; cin>>Rin>>Rout; double A=(Rout-Rin)/2; double B=Rout-A; printf("%.10f\n",C*2*A*A*B*PI*PI); }