結果
| 問題 | No.242 ビンゴゲーム |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-03-04 19:54:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 398 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-01 11:01:40 |
| 合計ジャッジ時間 | 2,594 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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