結果
| 問題 |
No.242 ビンゴゲーム
|
| ユーザー |
maspy
|
| 提出日時 | 2020-03-04 19:54:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 347 bytes |
| コンパイル時間 | 151 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-14 00:24:12 |
| 合計ジャッジ時間 | 1,144 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
#!/usr/bin/env python3
# %%
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
from math import factorial as fact
# %%
N = int(read())
# %%
if N < 5:
print(0)
exit()
# %%
den = fact(99) // fact(N)
num = fact(94) // fact(N - 5)
p = num / den
answer = p * 12
print(answer)
maspy