結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー dazydazy
提出日時 2016-09-10 02:06:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 377 bytes
コンパイル時間 3,595 ms
コンパイル使用メモリ 74,260 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-04-15 19:43:18
合計ジャッジ時間 5,671 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
41,500 KB
testcase_01 AC 140 ms
41,480 KB
testcase_02 AC 140 ms
41,180 KB
testcase_03 AC 139 ms
41,852 KB
testcase_04 AC 135 ms
40,976 KB
testcase_05 AC 139 ms
41,340 KB
testcase_06 AC 142 ms
40,988 KB
testcase_07 AC 141 ms
41,228 KB
testcase_08 AC 142 ms
41,736 KB
testcase_09 AC 140 ms
41,520 KB
testcase_10 AC 139 ms
41,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        byte S = scan.nextByte();
        double Rin = scan.nextByte();
        double Rout = scan.nextByte();

        double V;
        V = Math.pow(Math.PI,2) * (Rin + Rout) * Math.pow(Rout-Rin,2) / 4;
        System.out.println(S*V);
    }
}
0