結果

問題 No.1220 yukipoker
ユーザー nehan_der_thalnehan_der_thal
提出日時 2020-09-04 22:02:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 307 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 82,148 KB
実行使用メモリ 78,404 KB
最終ジャッジ日時 2024-05-04 22:20:10
合計ジャッジ時間 4,363 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
61,600 KB
testcase_01 AC 42 ms
61,812 KB
testcase_02 AC 41 ms
61,012 KB
testcase_03 AC 42 ms
61,152 KB
testcase_04 AC 41 ms
60,984 KB
testcase_05 AC 41 ms
62,052 KB
testcase_06 AC 44 ms
60,780 KB
testcase_07 AC 42 ms
60,824 KB
testcase_08 AC 45 ms
61,932 KB
testcase_09 AC 44 ms
61,012 KB
testcase_10 AC 45 ms
61,944 KB
testcase_11 AC 187 ms
77,916 KB
testcase_12 AC 201 ms
78,160 KB
testcase_13 AC 307 ms
78,348 KB
testcase_14 AC 265 ms
78,404 KB
testcase_15 AC 199 ms
78,060 KB
testcase_16 AC 221 ms
77,932 KB
testcase_17 AC 160 ms
78,236 KB
testcase_18 AC 189 ms
78,392 KB
testcase_19 AC 270 ms
77,944 KB
testcase_20 AC 275 ms
77,820 KB
testcase_21 AC 42 ms
61,492 KB
testcase_22 AC 45 ms
61,184 KB
testcase_23 AC 42 ms
61,672 KB
testcase_24 AC 44 ms
61,568 KB
testcase_25 AC 48 ms
62,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
MX = 10**5
X = [0]*(MX+1)
for i in range(2, MX+1):
    X[i] = X[i-1] + math.log(i)
#print(X)
Q, = map(int, input().split())
for _ in range(Q):
    N, M, K = map(int, input().split())
    l = X[N]
    r = X[N-K+1]+X[K]+(K-1)*math.log(M)
    if l > r:
        print("Straight")
    else:
        print("Flush")
0