結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー scachescache
提出日時 2014-12-07 19:13:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 435 bytes
コンパイル時間 2,972 ms
コンパイル使用メモリ 74,116 KB
実行使用メモリ 54,472 KB
最終ジャッジ日時 2024-04-15 19:31:18
合計ジャッジ時間 4,844 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
54,144 KB
testcase_01 AC 120 ms
54,436 KB
testcase_02 AC 125 ms
54,372 KB
testcase_03 AC 119 ms
54,076 KB
testcase_04 AC 123 ms
54,472 KB
testcase_05 AC 124 ms
54,056 KB
testcase_06 AC 120 ms
54,144 KB
testcase_07 AC 114 ms
53,684 KB
testcase_08 AC 118 ms
54,212 KB
testcase_09 AC 123 ms
54,048 KB
testcase_10 AC 120 ms
53,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main1 {
	public static void main(String[] args) {
		Main1 p = new Main1();
	}

	public Main1() {
		Scanner sc = new Scanner(System.in);
		int c=sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
		solve(c,a,b);
	}

	public void solve(int c, int a, int b) {
		double res = Math.PI*Math.PI*Math.pow((b-a)/2.0, 2)*2*(a+(b-a)/2.0)*c;
		System.out.println(res);
	}

}
0