結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー monburan_0401
提出日時 2018-09-16 03:40:17
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 28,928 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 07:19:04
合計ジャッジ時間 541 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 2 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <math.h>
int main(void){
	int C;
	int Rin;
	int Rout;
	double V;
	int pi = 3.141593;
	
	scanf("%d %d %d",&C,&Rin,&Rout);
	
	V = (double)0.5 * pi * pi * (Rout - Rin) * (Rout - Rin) * Rout;
	
	printf("%lf\n",V*C);
	return 0;
}
0