結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
|
提出日時 | 2024-04-01 20:15:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 3,573 ms |
コンパイル使用メモリ | 251,184 KB |
最終ジャッジ日時 | 2025-02-20 18:59:49 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using ll = long long;using ld = long double;int C, Rin, Rout;int main() {cin >> C >> Rin >> Rout;double r = (Rout - Rin) / 2.0;double S = r * r * M_PI;double L = (Rout + Rin) / 2.0 * 2 * M_PI;double ans = S * L * C;cout << fixed << setprecision(15) << ans << endl;return 0;}