結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー kou6839kou6839
提出日時 2014-12-09 12:59:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 3,493 ms
コンパイル使用メモリ 71,412 KB
実行使用メモリ 56,136 KB
最終ジャッジ日時 2023-09-02 12:05:04
合計ジャッジ時間 4,576 ms
ジャッジサーバーID
(参考情報)
judge12 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 131 ms
55,508 KB
testcase_03 WA -
testcase_04 AC 134 ms
55,712 KB
testcase_05 AC 134 ms
55,788 KB
testcase_06 AC 128 ms
55,856 KB
testcase_07 AC 133 ms
55,996 KB
testcase_08 AC 136 ms
56,136 KB
testcase_09 AC 130 ms
55,816 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int c=sc.nextInt();
		int rin = sc.nextInt();
		int rout=sc.nextInt();
		double men = (rout-rin)/2*(rout-rin)/2*Math.PI;
		double kyori = (rout+rin)/2*2*Math.PI;
		System.out.println(men*kyori*c);
	}
}
0