結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2018-03-07 11:22:06 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 438 bytes |
| コンパイル時間 | 873 ms |
| コンパイル使用メモリ | 82,776 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 23:24:34 |
| 合計ジャッジ時間 | 1,276 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<utility>
using namespace std;
typedef long long int ll;
int main(){
double c, rin, rout;
cin >> c >> rin >> rout;
double R=(rout+rin)/2;
double r=rout-R;
double ans=c*pow(r, 2)*pow(M_PI, 2)*2*R;
cout << fixed << setprecision(10) << ans << endl;
return 0;
}
tenkyu9