結果
問題 |
No.89 どんどんドーナツどーんといこう!
|
ユーザー |
![]() |
提出日時 | 2015-04-26 17:56:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 433 ms |
コンパイル使用メモリ | 63,392 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 22:30:39 |
合計ジャッジ時間 | 932 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <math.h> #include "iostream" #include "algorithm" using namespace std; int main() { int i,j,k=0; double c, in, out = 0.0; cin >> c; cin>>in>>out; printf("%.14f\n", ((out-in)/2.0+ in) * 2.0 * M_PI * (out-in)/2.0 * (out-in)/2.0 * M_PI * c); return 0; }