結果
| 問題 | No.89 どんどんドーナツどーんといこう! |
| コンテスト | |
| ユーザー |
prog470
|
| 提出日時 | 2016-09-11 02:26:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 433 bytes |
| 記録 | |
| コンパイル時間 | 580 ms |
| コンパイル使用メモリ | 78,300 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 22:58:17 |
| 合計ジャッジ時間 | 1,181 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
#define _USE_MATH_DEFINES
#include <cmath>
#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
double C, RI, RO;
cin >> C >> RI >> RO;
double r = (RO - RI) / 2.0;
printf("%.6lf\n", C*r*r*M_PI * 2 * (RI + r) * M_PI);
return 0;
}
prog470