結果
問題 | No.1220 yukipoker |
ユーザー |
![]() |
提出日時 | 2020-11-26 16:27:18 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 127 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 82,308 KB |
実行使用メモリ | 85,328 KB |
最終ジャッジ日時 | 2024-07-23 20:52:52 |
合計ジャッジ時間 | 3,503 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
import sysfrom math import logfrom itertools import accumulatedef 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]-SA[K]+log(M) < K*log(M)+log(N-K+1):print('Flush')else:print('Straight')