結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー | xyz600600 |
提出日時 | 2016-03-19 04:11:42 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 619 ms |
コンパイル使用メモリ | 59,168 KB |
実行使用メモリ | 6,676 KB |
最終ジャッジ日時 | 2024-04-08 17:03:31 |
合計ジャッジ時間 | 1,329 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 2 ms
6,676 KB |
testcase_03 | AC | 2 ms
6,676 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 2 ms
6,676 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
#include <iostream> #include <cmath> using namespace std; typedef long long int lli; int main() { lli c, ri, ro; cin >> c >> ri >> ro; const lli r = ro - ri; const double rm = ( ro + ri ) / 2.0; cout << ( M_PI * r * r ) * ( 2 * M_PI * rm ) << endl; }