結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー masa
提出日時 2015-02-26 20:18:06
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 63,188 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 22:27:05
合計ジャッジ時間 985 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <cmath>

using namespace std;

int main() {
	int c, in, out;

	cin >> c >> in >> out;
	double r = 1.0 * (out - in) / 2;
	double w = 1.0 * (out + in) / 2;

	double v = M_PI * r * r * 2 * M_PI * w * c;
	printf("%.5f\n", v);
	return 0;
}
0