結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー なお
提出日時 2014-12-07 19:12:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 358 bytes
コンパイル時間 1,070 ms
コンパイル使用メモリ 158,548 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 22:18:45
合計ジャッジ時間 1,558 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n)           for(int(i)=0;(i)<(n);++(i))

const double pi = 3.14159265358979323;

int main(){
    int c,Rin,Rout;
    cin >> c >> Rin >> Rout;

    double r = (Rout-Rin)/2.0;
    double r2 = r + Rin;
    double res = pi*r*r*r2*2*pi*c;

    printf("%.16f\n", res);
    return 0;
}
0