結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー fal_rndfal_rnd
提出日時 2017-09-30 00:16:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 605 bytes
コンパイル時間 2,413 ms
コンパイル使用メモリ 79,404 KB
実行使用メモリ 41,416 KB
最終ジャッジ日時 2024-04-15 19:47:55
合計ジャッジ時間 3,934 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
41,352 KB
testcase_01 AC 114 ms
41,092 KB
testcase_02 AC 115 ms
40,988 KB
testcase_03 AC 118 ms
41,108 KB
testcase_04 AC 106 ms
39,976 KB
testcase_05 AC 116 ms
41,416 KB
testcase_06 AC 111 ms
41,020 KB
testcase_07 AC 103 ms
40,228 KB
testcase_08 AC 110 ms
41,140 KB
testcase_09 AC 111 ms
41,192 KB
testcase_10 AC 115 ms
41,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n){return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static long getLong(){return Long.parseLong(s.next());}

	public static void main(String[]$){
		int c=getInt(),rin=getInt(),rout=getInt();
		double rs=(rout-rin)/2.0;
		System.out.println(c*Math.PI*(rout+rin)*rs*rs*Math.PI);
	}
}
0