結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー monburan_0401monburan_0401
提出日時 2018-09-16 03:54:43
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 475 ms
コンパイル使用メモリ 30,336 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-15 19:51:33
合計ジャッジ時間 924 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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