結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー tsunabittsunabit
提出日時 2018-09-16 12:35:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 147 ms / 5,000 ms
コード長 380 bytes
コンパイル時間 3,595 ms
コンパイル使用メモリ 76,068 KB
実行使用メモリ 41,900 KB
最終ジャッジ日時 2024-04-15 19:51:41
合計ジャッジ時間 5,102 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,448 KB
testcase_01 AC 127 ms
41,428 KB
testcase_02 AC 132 ms
41,368 KB
testcase_03 AC 119 ms
40,788 KB
testcase_04 AC 134 ms
41,500 KB
testcase_05 AC 147 ms
41,900 KB
testcase_06 AC 114 ms
40,640 KB
testcase_07 AC 131 ms
41,760 KB
testcase_08 AC 133 ms
41,608 KB
testcase_09 AC 129 ms
41,208 KB
testcase_10 AC 116 ms
40,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No89 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c=sc.nextInt();
		double in=sc.nextDouble();
		double out=sc.nextDouble();
		System.out.println(c*Math.PI*Math.PI/4*(in+out)*(in-out)*(in-out));
        
	}
}
0