結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー spaciaspacia
提出日時 2015-12-19 12:15:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 484 bytes
コンパイル時間 2,672 ms
コンパイル使用メモリ 74,052 KB
実行使用メモリ 37,352 KB
最終ジャッジ日時 2024-04-15 19:40:07
合計ジャッジ時間 2,929 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
37,352 KB
testcase_01 AC 49 ms
37,208 KB
testcase_02 AC 51 ms
37,252 KB
testcase_03 AC 50 ms
37,284 KB
testcase_04 AC 50 ms
37,248 KB
testcase_05 AC 52 ms
37,352 KB
testcase_06 AC 50 ms
37,036 KB
testcase_07 AC 50 ms
37,244 KB
testcase_08 AC 49 ms
37,200 KB
testcase_09 AC 50 ms
37,040 KB
testcase_10 AC 49 ms
37,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main89 {
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		double c = Double.parseDouble(br.readLine());
		String[] line = br.readLine().split(" ");
		double in = Double.parseDouble(line[0]);
		double out = Double.parseDouble(line[1]);
		
		System.out.println(1.0 / 4.0 * Math.pow(Math.PI, 2) * (in + out) * Math.pow(out - in, 2) * c);
	}
}
0