結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー papipenpapipen
提出日時 2017-04-11 21:35:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 304 bytes
コンパイル時間 2,623 ms
コンパイル使用メモリ 74,444 KB
実行使用メモリ 41,576 KB
最終ジャッジ日時 2024-04-15 19:45:36
合計ジャッジ時間 3,846 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,480 KB
testcase_01 AC 119 ms
41,480 KB
testcase_02 AC 110 ms
40,224 KB
testcase_03 AC 118 ms
41,360 KB
testcase_04 AC 118 ms
41,280 KB
testcase_05 AC 123 ms
41,576 KB
testcase_06 AC 112 ms
40,908 KB
testcase_07 AC 116 ms
41,472 KB
testcase_08 AC 121 ms
41,132 KB
testcase_09 AC 118 ms
40,996 KB
testcase_10 AC 118 ms
41,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class N089{
	public static void main(String args[]){
		Scanner s = new Scanner(System.in);
		int c = s.nextInt();
		int i = s.nextInt();
		int o = s.nextInt();
		double r = (o - i) / 2d;
		double R = (o + i) / 2d;
		System.out.println(2 * Math.pow(Math.PI * r, 2) * R * c);
	}
}
0