結果
| 問題 |
No.1220 yukipoker
|
| ユーザー |
tktk_snsn
|
| 提出日時 | 2020-12-22 01:58:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 440 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 86,000 KB |
| 最終ジャッジ日時 | 2024-09-21 13:39:41 |
| 合計ジャッジ時間 | 5,175 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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