結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2018-01-16 17:34:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 632 bytes |
コンパイル時間 | 1,432 ms |
コンパイル使用メモリ | 164,588 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 23:21:35 |
合計ジャッジ時間 | 2,132 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream>#include <math.h>#include <algorithm>#include <functional>#include <vector>#include <typeinfo>#include <climits>#include <ctype.h>#include <string>#include <stack>#include <bits/stdc++.h>using namespace std;#define FOR(i, a, n) for (int i = a; i < n; i++)#define REP(i, n) for(int i = 0; i < n; i++)struct omt{omt(){ios::sync_with_stdio(false);cin.tie(0);}}star;int main(){double c, a, b;cin >> c >> a >> b;c = double(c);double v;v = (pow(M_PI, 2) * (a + b) * pow((a - b), 2)) / 4.0;cout << fixed << setprecision(6);cout << c * v << endl;return 0;}