結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-15 10:40:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 324 bytes
コンパイル時間 3,433 ms
コンパイル使用メモリ 77,060 KB
実行使用メモリ 41,964 KB
最終ジャッジ日時 2024-04-15 19:49:06
合計ジャッジ時間 5,741 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
41,180 KB
testcase_01 AC 147 ms
41,480 KB
testcase_02 AC 145 ms
41,596 KB
testcase_03 AC 146 ms
41,280 KB
testcase_04 AC 145 ms
41,964 KB
testcase_05 AC 142 ms
41,344 KB
testcase_06 AC 129 ms
40,204 KB
testcase_07 AC 139 ms
41,064 KB
testcase_08 AC 149 ms
41,280 KB
testcase_09 AC 135 ms
41,000 KB
testcase_10 AC 145 ms
41,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No89 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int C = sc.nextInt();
		double r1 = sc.nextDouble();
		double r2 = sc.nextDouble();
		double V = Math.pow(Math.PI,2) * Math.pow((r2 - r1), 2) * (r1+r2) /4;
		
		System.out.println(C * V);
	}
}

0