結果

問題 No.1220 yukipoker
ユーザー nehan_der_thalnehan_der_thal
提出日時 2020-09-04 22:02:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 332 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 584 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 79,872 KB
最終ジャッジ日時 2023-08-17 15:39:38
合計ジャッジ時間 5,748 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
77,888 KB
testcase_01 AC 77 ms
78,116 KB
testcase_02 AC 78 ms
78,056 KB
testcase_03 AC 80 ms
78,152 KB
testcase_04 AC 79 ms
78,240 KB
testcase_05 AC 79 ms
78,148 KB
testcase_06 AC 79 ms
77,800 KB
testcase_07 AC 79 ms
78,136 KB
testcase_08 AC 79 ms
78,136 KB
testcase_09 AC 77 ms
77,876 KB
testcase_10 AC 79 ms
77,888 KB
testcase_11 AC 213 ms
79,824 KB
testcase_12 AC 225 ms
79,692 KB
testcase_13 AC 332 ms
79,768 KB
testcase_14 AC 329 ms
79,772 KB
testcase_15 AC 250 ms
79,872 KB
testcase_16 AC 263 ms
79,656 KB
testcase_17 AC 202 ms
79,540 KB
testcase_18 AC 225 ms
79,712 KB
testcase_19 AC 329 ms
79,852 KB
testcase_20 AC 328 ms
79,772 KB
testcase_21 AC 83 ms
77,820 KB
testcase_22 AC 82 ms
78,072 KB
testcase_23 AC 82 ms
77,996 KB
testcase_24 AC 80 ms
77,756 KB
testcase_25 AC 82 ms
77,796 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