結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー darknightdarknight
提出日時 2016-11-25 22:07:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 381 bytes
コンパイル時間 2,263 ms
コンパイル使用メモリ 74,684 KB
実行使用メモリ 41,592 KB
最終ジャッジ日時 2024-04-15 19:44:07
合計ジャッジ時間 4,297 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
41,148 KB
testcase_01 AC 132 ms
41,592 KB
testcase_02 AC 116 ms
39,924 KB
testcase_03 AC 130 ms
41,352 KB
testcase_04 AC 130 ms
40,756 KB
testcase_05 AC 131 ms
41,400 KB
testcase_06 AC 128 ms
41,268 KB
testcase_07 AC 129 ms
41,484 KB
testcase_08 AC 134 ms
41,232 KB
testcase_09 AC 133 ms
41,172 KB
testcase_10 AC 131 ms
41,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 
public class Main {
	public static void main(String[] args) {
	Scanner sc  = new Scanner(System.in);
    double ans = 0;
    int C   = Integer.parseInt(sc.next());
    int a   = Integer.parseInt(sc.next());
    int b   = Integer.parseInt(sc.next());
    ans = C*(b*b-a*a)*(b-a)*2.46740110027;
    System.out.print(ans);
    System.out.println();
	}
        
}
0