結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー mits58mits58
提出日時 2016-07-02 00:34:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 330 bytes
コンパイル時間 2,008 ms
コンパイル使用メモリ 74,564 KB
実行使用メモリ 41,776 KB
最終ジャッジ日時 2024-04-15 19:42:15
合計ジャッジ時間 4,073 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,516 KB
testcase_01 AC 129 ms
41,552 KB
testcase_02 AC 132 ms
41,676 KB
testcase_03 AC 133 ms
41,552 KB
testcase_04 AC 120 ms
40,776 KB
testcase_05 AC 132 ms
41,584 KB
testcase_06 AC 133 ms
41,176 KB
testcase_07 AC 127 ms
41,040 KB
testcase_08 AC 130 ms
41,728 KB
testcase_09 AC 130 ms
41,776 KB
testcase_10 AC 131 ms
41,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			double c=sc.nextDouble();
			double rin=sc.nextDouble();
			double rout=sc.nextDouble();
			System.out.println(c*2*Math.PI*(rout+rin)/2.0*(rout-rin)*(rout-rin)/4*Math.PI);
		}
	}
}
0