結果
問題 |
No.89 どんどんドーナツどーんといこう!
|
ユーザー |
|
提出日時 | 2021-01-11 20:46:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 709 ms |
コンパイル使用メモリ | 90,320 KB |
最終ジャッジ日時 | 2025-01-17 16:12:46 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <algorithm> #include <array> #include <cmath> #include <cstdio> #include <iostream> #include <numeric> #include <optional> #include <vector> using namespace std; int main() { int32_t c, rin, rout; cin >> c >> rin >> rout; double v = M_PI * M_PI * (rin + rout) * (rout - rin) * (rout - rin) / 4; printf("%.7f\n", v * c); return 0; }