結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2015-06-11 20:25:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 756 ms |
コンパイル使用メモリ | 71,624 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 22:36:34 |
合計ジャッジ時間 | 1,144 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> #include <iomanip> using namespace std; typedef long long LL; int main(){ double C, r1, r2; cin >> C >> r1 >> r2; double R = (r1 + r2) * 0.5; double r = (r2 - r1) * 0.5; cout << setprecision(13) << C * 2.0 * M_PI * M_PI * r * r * R << endl; return 0; }