結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー Mcpu3Mcpu3
提出日時 2018-06-23 18:03:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 1,827 ms
コンパイル使用メモリ 74,068 KB
実行使用メモリ 41,984 KB
最終ジャッジ日時 2024-04-15 19:51:06
合計ジャッジ時間 3,744 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,984 KB
testcase_01 AC 131 ms
41,652 KB
testcase_02 AC 115 ms
41,112 KB
testcase_03 AC 125 ms
41,728 KB
testcase_04 AC 127 ms
41,344 KB
testcase_05 AC 130 ms
41,936 KB
testcase_06 AC 133 ms
41,464 KB
testcase_07 AC 125 ms
41,768 KB
testcase_08 AC 125 ms
41,560 KB
testcase_09 AC 111 ms
40,736 KB
testcase_10 AC 116 ms
41,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no89{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		double c,i,o,t,p=3.141592653589793;
		c=stdIn.nextDouble();
		i=stdIn.nextDouble();
		o=stdIn.nextDouble();
		t=.5*(o-i);
		System.out.print(t*t*(i+t)*p*p*c*2);
	}
}
0