結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー kaoetayakaoetaya
提出日時 2016-11-10 18:04:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 3,513 ms
コンパイル使用メモリ 77,188 KB
実行使用メモリ 41,636 KB
最終ジャッジ日時 2024-04-15 19:43:49
合計ジャッジ時間 4,994 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,512 KB
testcase_01 AC 119 ms
40,876 KB
testcase_02 AC 134 ms
41,124 KB
testcase_03 AC 131 ms
41,588 KB
testcase_04 AC 130 ms
40,920 KB
testcase_05 AC 129 ms
41,244 KB
testcase_06 AC 129 ms
41,488 KB
testcase_07 AC 118 ms
40,900 KB
testcase_08 AC 128 ms
41,628 KB
testcase_09 AC 124 ms
41,464 KB
testcase_10 AC 127 ms
41,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class pre {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);
		double c = s.nextDouble(),r = s.nextDouble(),R = s.nextDouble();
		double V = 2 * Math.pow(Math.PI,2) * Math.pow((R-r)/2,2) * (R-((R-r)/2));
		System.out.println(c * V);
    }
}
0