結果

問題 No.1220 yukipoker
ユーザー ayaoniayaoni
提出日時 2020-11-26 16:27:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 86,548 KB
最終ジャッジ日時 2023-10-01 03:24:59
合計ジャッジ時間 4,980 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
84,836 KB
testcase_01 AC 83 ms
84,492 KB
testcase_02 AC 83 ms
84,604 KB
testcase_03 AC 85 ms
84,488 KB
testcase_04 AC 84 ms
84,548 KB
testcase_05 AC 84 ms
84,564 KB
testcase_06 AC 86 ms
84,528 KB
testcase_07 AC 85 ms
84,576 KB
testcase_08 AC 82 ms
84,556 KB
testcase_09 AC 82 ms
84,588 KB
testcase_10 AC 87 ms
84,476 KB
testcase_11 AC 131 ms
86,244 KB
testcase_12 AC 128 ms
86,548 KB
testcase_13 AC 151 ms
85,920 KB
testcase_14 AC 154 ms
86,224 KB
testcase_15 AC 137 ms
86,124 KB
testcase_16 AC 142 ms
86,308 KB
testcase_17 AC 126 ms
86,352 KB
testcase_18 AC 133 ms
86,060 KB
testcase_19 AC 152 ms
86,184 KB
testcase_20 AC 159 ms
86,136 KB
testcase_21 AC 80 ms
84,824 KB
testcase_22 AC 83 ms
84,536 KB
testcase_23 AC 82 ms
84,616 KB
testcase_24 AC 84 ms
84,552 KB
testcase_25 AC 82 ms
84,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]-SA[K]+log(M) < K*log(M)+log(N-K+1):
        print('Flush')
    else:
        print('Straight')
0