結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-27 21:27:35
言語 Java19
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 628 bytes
コンパイル時間 2,786 ms
コンパイル使用メモリ 71,904 KB
実行使用メモリ 49,508 KB
最終ジャッジ日時 2023-07-28 10:56:42
合計ジャッジ時間 3,319 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,372 KB
testcase_01 AC 43 ms
49,288 KB
testcase_02 AC 43 ms
49,228 KB
testcase_03 AC 43 ms
49,508 KB
testcase_04 AC 43 ms
49,176 KB
testcase_05 AC 42 ms
49,464 KB
testcase_06 AC 44 ms
49,280 KB
testcase_07 AC 43 ms
49,472 KB
testcase_08 AC 43 ms
49,392 KB
testcase_09 AC 43 ms
49,264 KB
testcase_10 AC 43 ms
49,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int C = Integer.parseInt(reader.readLine());
        String[] inputs = reader.readLine().split(" ");
        int Rin = Integer.parseInt(inputs[0]);
        int Rout = Integer.parseInt(inputs[1]);
        double r = (Rout - Rin )/2.0;
        double V = ((Rin +Rout) / 2.0) * 2 * Math.PI *  (r * r * Math.PI) * C;
        System.out.println(V);

    }
}
0