結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー kiyunetsubamnakiyunetsubamna
提出日時 2015-05-26 11:05:03
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 65,612 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-20 13:28:35
合計ジャッジ時間 1,271 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
4,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#define _USE_MATH_DEFINES
#include<math.h>
#include<iomanip>
using namespace std;

int main(){
	double c;
	double rin;
	double rout;
	cin >> c;
	cin >> rin;
	cin >> rout;
	long double ans = (pow((rout - rin) / 2, 2)*M_PI)*(pow((rout + rin) / 2, 2)*M_PI)*c;
	cout << setprecision(15) << ans << endl;
	return 0;
}
0