結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー 37zigen37zigen
提出日時 2016-03-12 18:37:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 173 ms / 5,000 ms
コード長 467 bytes
コンパイル時間 3,872 ms
コンパイル使用メモリ 76,724 KB
実行使用メモリ 42,308 KB
最終ジャッジ日時 2024-04-15 19:41:09
合計ジャッジ時間 6,248 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 170 ms
42,288 KB
testcase_01 AC 170 ms
42,040 KB
testcase_02 AC 169 ms
41,624 KB
testcase_03 AC 173 ms
41,800 KB
testcase_04 AC 167 ms
41,824 KB
testcase_05 AC 167 ms
42,060 KB
testcase_06 AC 169 ms
42,132 KB
testcase_07 AC 165 ms
42,080 KB
testcase_08 AC 165 ms
41,812 KB
testcase_09 AC 171 ms
41,720 KB
testcase_10 AC 171 ms
42,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package 練習;
import java.util.Date;
import java.util.Scanner;

public class main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		long exec_time=new Date().getTime();
		double c=sc.nextDouble();
		double r_in=sc.nextDouble();
		double r_out=sc.nextDouble();
		
		double V;
		V=Math.PI*2*((r_out+r_in)/2)*Math.pow((r_out-r_in)/2,2)*Math.PI;
		System.out.println(V*c);
		System.err.println(new Date().getTime()-exec_time+"ms");
	}
}

0