結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー maicune
提出日時 2019-09-03 19:56:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 1,534 ms
コンパイル使用メモリ 159,112 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-24 13:44:01
合計ジャッジ時間 2,328 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    int c,rin,rout;
    cin>>c>>rin>>rout;
    double pi,r,ans;
    pi=4.0*atan(1.0);
    r=(rout-rin)/2.0;
    ans=2*pi*pi*r*r*(rin+r)*c;
    cout<<fixed<<setprecision(10)<<ans<<endl;
}
0