結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー soujikisoujiki
提出日時 2015-05-01 18:08:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 3,681 ms
コンパイル使用メモリ 77,320 KB
実行使用メモリ 41,668 KB
最終ジャッジ日時 2024-04-15 19:34:26
合計ジャッジ時間 5,981 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
41,400 KB
testcase_01 AC 144 ms
41,200 KB
testcase_02 AC 143 ms
41,048 KB
testcase_03 AC 145 ms
41,260 KB
testcase_04 AC 147 ms
41,052 KB
testcase_05 AC 148 ms
41,208 KB
testcase_06 AC 147 ms
41,144 KB
testcase_07 AC 147 ms
41,648 KB
testcase_08 AC 146 ms
41,488 KB
testcase_09 AC 147 ms
41,308 KB
testcase_10 AC 146 ms
41,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Yukicoder_89{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int C = stdIn.nextInt();
		int R_in = stdIn.nextInt();
		int R_out = stdIn.nextInt();
		double vol = Math.pow((R_out-R_in)/2.0,2)*Math.PI*((R_out-R_in)/2.0+R_in)*2.0*Math.PI;
		System.out.println(vol*C);
	}
}
0