結果

問題 No.242 ビンゴゲーム
ユーザー GrenacheGrenache
提出日時 2015-07-22 22:24:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 3,101 ms
コンパイル使用メモリ 72,260 KB
実行使用メモリ 56,468 KB
最終ジャッジ日時 2023-09-22 21:25:02
合計ジャッジ時間 5,300 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,160 KB
testcase_01 AC 125 ms
55,824 KB
testcase_02 AC 127 ms
56,468 KB
testcase_03 AC 125 ms
56,156 KB
testcase_04 AC 124 ms
55,784 KB
testcase_05 AC 124 ms
55,900 KB
testcase_06 AC 124 ms
55,852 KB
testcase_07 AC 124 ms
55,844 KB
testcase_08 AC 127 ms
56,204 KB
testcase_09 AC 125 ms
56,340 KB
testcase_10 AC 124 ms
55,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder242 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        double e = (double)12 * n * (n - 1) * (n - 2) * (n - 3) * (n - 4) / 99 / 98 / 97 / 96 / 95;

        System.out.printf("%.7f\n", e);

        sc.close();
    }
}
0