結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー shinwisteriashinwisteria
提出日時 2019-01-22 21:16:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 155 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 3,635 ms
コンパイル使用メモリ 76,640 KB
実行使用メモリ 42,252 KB
最終ジャッジ日時 2024-04-15 19:52:44
合計ジャッジ時間 6,017 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 154 ms
41,852 KB
testcase_01 AC 155 ms
42,252 KB
testcase_02 AC 152 ms
41,612 KB
testcase_03 AC 152 ms
41,488 KB
testcase_04 AC 153 ms
41,924 KB
testcase_05 AC 151 ms
41,884 KB
testcase_06 AC 153 ms
41,892 KB
testcase_07 AC 155 ms
42,016 KB
testcase_08 AC 153 ms
41,436 KB
testcase_09 AC 153 ms
41,848 KB
testcase_10 AC 152 ms
41,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No89 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		double c = s.nextDouble() , rin = s.nextDouble() , rout = s.nextDouble();
		s.close();

		double rhalf = rin + (rout - rin) / 2;
		System.out.println(c * Math.pow((rout-rin)/2,2) * 2 * rhalf * Math.pow(Math.PI,2));

	}

}
0