結果
| 問題 |
No.1220 yukipoker
|
| コンテスト | |
| ユーザー |
ayaoni
|
| 提出日時 | 2020-11-26 16:25:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 400 bytes |
| コンパイル時間 | 421 ms |
| コンパイル使用メモリ | 82,164 KB |
| 実行使用メモリ | 85,432 KB |
| 最終ジャッジ日時 | 2024-07-23 20:52:38 |
| 合計ジャッジ時間 | 5,191 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 25 |
ソースコード
import sys
from math import log
from itertools import accumulate
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
A = [0]+[log(i) for i in range(1,10**5+1)]
SA = list(accumulate(A))
Q = I()
for _ in range(Q):
N,M,K = MI()
if SA[N]-SA[N-K+1] < K*log(M)+log(N-K+1):
print('Flush')
else:
print('Straight')
ayaoni