結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー k_kadorak_kadora
提出日時 2015-05-24 03:41:31
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 3,064 ms
コンパイル使用メモリ 72,840 KB
実行使用メモリ 57,044 KB
最終ジャッジ日時 2023-09-20 10:57:44
合計ジャッジ時間 5,362 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Donut{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		double ri,ro,c,res;
		System.out.println(Math.PI);
		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