結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
![]() |
提出日時 | 2021-04-08 20:03:24 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 2,550 ms |
コンパイル使用メモリ | 191,172 KB |
最終ジャッジ日時 | 2025-01-20 13:08:32 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i,n) for(int i=0;i<n;i++)static const double pai=3.14159265358979;int main(){double c,ri,ro;cin>>c>>ri>>ro;cout<<setprecision(18)<<c*pai*pai*(ro+ri)*(ro-ri)*(ro-ri)*.25<<endl;return 0;}