結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー kiyunetsubamna
提出日時 2015-05-26 11:05:03
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 636 ms
コンパイル使用メモリ 66,296 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 08:44:48
合計ジャッジ時間 1,237 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 2 WA * 7
権限があれば一括ダウンロードができます

ソースコード

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