結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー suibaka_kusuibaka_ku
提出日時 2017-03-05 23:16:24
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 616 ms
コンパイル使用メモリ 74,300 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-15 19:45:06
合計ジャッジ時間 1,011 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
constexpr double pi = acos(-1.0);

int main() {
    int C;
    cin >> C;
    double Ri, Ro;
    cin >> Ri >> Ro;
    double r = (Ro-Ri)/2;
    cout << fixed << setprecision(10) << pi*(Ri+Ro)*r*r*pi * C << endl;
}
0