結果
| 問題 | No.1220 yukipoker |
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2020-12-22 01:58:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 440 bytes |
| 記録 | |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 85,088 KB |
| 実行使用メモリ | 90,856 KB |
| 最終ジャッジ日時 | 2026-04-09 19:02:48 |
| 合計ジャッジ時間 | 3,811 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
from itertools import accumulate
import math
U = 10 ** 5 + 10
log = [0] + [math.log10(i) for i in range(1, U + 1)]
log_acc = list(accumulate(log))
def test():
N, M, K = map(int, input().split())
f = log[M] + (log_acc[N]-log_acc[N-K]) - log_acc[K]
s = K * log[M] + log[N - K + 1]
if f > s:
return "Straight"
else:
return "Flush"
Q = int(input())
ans = [test() for _ in range(Q)]
print("\n".join(ans))
tktk_snsn