結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー htensaihtensai
提出日時 2019-12-05 18:14:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 313 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 71,160 KB
実行使用メモリ 56,008 KB
最終ジャッジ日時 2023-08-23 10:55:51
合計ジャッジ時間 4,269 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,008 KB
testcase_01 AC 124 ms
55,896 KB
testcase_02 AC 125 ms
55,552 KB
testcase_03 AC 125 ms
55,968 KB
testcase_04 AC 126 ms
55,660 KB
testcase_05 AC 126 ms
55,868 KB
testcase_06 AC 127 ms
55,980 KB
testcase_07 AC 128 ms
55,704 KB
testcase_08 AC 126 ms
55,836 KB
testcase_09 AC 126 ms
55,524 KB
testcase_10 AC 126 ms
55,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double c = sc.nextInt();
		double a = sc.nextInt();
		double b = sc.nextInt();
		double ans = Math.PI * Math.PI * (a + b) * (b - a) * (b - a) / 4.0 * c;
		System.out.println(ans);
   }
}

0