結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-28 21:55:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 338 bytes
コンパイル時間 3,669 ms
コンパイル使用メモリ 74,472 KB
実行使用メモリ 41,916 KB
最終ジャッジ日時 2024-04-15 19:42:22
合計ジャッジ時間 5,036 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
40,940 KB
testcase_01 AC 125 ms
41,820 KB
testcase_02 AC 112 ms
40,808 KB
testcase_03 AC 131 ms
41,720 KB
testcase_04 AC 116 ms
40,808 KB
testcase_05 AC 135 ms
41,772 KB
testcase_06 AC 132 ms
41,768 KB
testcase_07 AC 131 ms
41,680 KB
testcase_08 AC 130 ms
41,916 KB
testcase_09 AC 131 ms
41,652 KB
testcase_10 AC 131 ms
41,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

    Scanner sc = new Scanner(System.in);

    double c = sc.nextDouble();
    double rIn = sc.nextDouble();
    double rOut = sc.nextDouble();

    System.out.println(c * ((rOut - rIn) * (rOut - rIn) * Math.PI * (rOut + rIn) / 4 * Math.PI));
  }
}
0