結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー k_kadorak_kadora
提出日時 2015-05-24 03:41:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 2,965 ms
コンパイル使用メモリ 74,184 KB
実行使用メモリ 41,632 KB
最終ジャッジ日時 2024-04-15 19:36:09
合計ジャッジ時間 4,886 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,508 KB
testcase_01 AC 132 ms
41,548 KB
testcase_02 AC 131 ms
41,632 KB
testcase_03 AC 125 ms
41,312 KB
testcase_04 AC 119 ms
41,124 KB
testcase_05 AC 128 ms
41,512 KB
testcase_06 AC 126 ms
40,880 KB
testcase_07 AC 115 ms
40,960 KB
testcase_08 AC 122 ms
41,608 KB
testcase_09 AC 117 ms
40,960 KB
testcase_10 AC 131 ms
41,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Donut{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		double ri,ro,c,res;
		c = sc.nextDouble();
		ri = sc.nextDouble();
		ro = sc.nextDouble();
		res = 2*Math.PI*(ri+(ro-ri)/2)*Math.PI*(ro-ri)*(ro-ri)*c/4;
		System.out.printf("%.10f\n",res);
	}
}
0