結果
| 問題 | No.89 どんどんドーナツどーんといこう! |
| コンテスト | |
| ユーザー |
Kurichan0806
|
| 提出日時 | 2017-12-12 17:54:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 450 bytes |
| コンパイル時間 | 827 ms |
| コンパイル使用メモリ | 82,992 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 23:20:31 |
| 合計ジャッジ時間 | 1,200 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <iomanip>
#include <functional>
#include <cmath>
#include <math.h>
using namespace std;
#define lli long long int
int main() {
int c;
int in, out;
double futosa, r2;
cin >> c >> in >> out;
futosa = (out - in) / 2.0;
r2 = (out + in);
cout << fixed << setprecision(10) << r2 * M_PI * pow(futosa, 2) * M_PI * c << endl;;
return 0;
}
Kurichan0806