結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| ユーザー |
Naoyk1212
|
| 提出日時 | 2017-06-14 17:53:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 421 bytes |
| コンパイル時間 | 637 ms |
| コンパイル使用メモリ | 73,364 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 23:14:42 |
| 合計ジャッジ時間 | 1,102 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>
#include <iomanip>
#include <map>
#include <stack>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
const int MOD = 1e9 + 7;
int main(){
int c, in, out;
cin >> c >> in >> out;
double radius = (out - in) / 2.;
double ans = radius * radius * M_PI * (in + radius) * 2 * M_PI * c;
cout << fixed << setprecision(10) << ans << endl;
}
Naoyk1212