結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー m2543315647
提出日時 2015-05-13 13:29:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 3,030 ms
コンパイル使用メモリ 74,196 KB
実行使用メモリ 41,768 KB
最終ジャッジ日時 2024-10-05 22:32:56
合計ジャッジ時間 5,185 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
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