結果

問題 No.242 ビンゴゲーム
ユーザー HIROPON87069639HIROPON87069639
提出日時 2016-02-17 21:44:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 773 ms
コンパイル使用メモリ 7,164 KB
実行使用メモリ 6,456 KB
最終ジャッジ日時 2023-10-22 06:21:16
合計ジャッジ時間 1,556 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,456 KB
testcase_01 AC 11 ms
6,456 KB
testcase_02 AC 12 ms
6,456 KB
testcase_03 AC 11 ms
6,456 KB
testcase_04 AC 12 ms
6,456 KB
testcase_05 AC 11 ms
6,456 KB
testcase_06 AC 11 ms
6,456 KB
testcase_07 AC 11 ms
6,456 KB
testcase_08 AC 11 ms
6,456 KB
testcase_09 AC 11 ms
6,456 KB
testcase_10 AC 11 ms
6,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
def nCm(n, m):
    A = 1.0
    B = 1.0
    C = n
    D = m
    for i in range(0, m):
        A *= C
        B *= D
        D -= 1
        C -= 1
    return A / B


N = input()
if N < 5:
    print 0
    exit()
print 12.0 * nCm(94, N-5) / nCm(99, N)
0