結果

問題 No.1220 yukipoker
ユーザー brthyyjpbrthyyjp
提出日時 2020-09-05 11:54:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 354 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 86,888 KB
実行使用メモリ 79,700 KB
最終ジャッジ日時 2023-08-18 18:09:19
合計ジャッジ時間 6,128 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
77,744 KB
testcase_01 AC 82 ms
77,808 KB
testcase_02 AC 79 ms
77,768 KB
testcase_03 AC 79 ms
77,752 KB
testcase_04 AC 79 ms
77,568 KB
testcase_05 AC 79 ms
77,840 KB
testcase_06 AC 78 ms
77,880 KB
testcase_07 AC 78 ms
77,732 KB
testcase_08 AC 79 ms
77,780 KB
testcase_09 AC 79 ms
77,568 KB
testcase_10 AC 78 ms
77,960 KB
testcase_11 AC 221 ms
79,472 KB
testcase_12 AC 231 ms
79,332 KB
testcase_13 AC 345 ms
79,296 KB
testcase_14 AC 341 ms
79,664 KB
testcase_15 AC 258 ms
79,620 KB
testcase_16 AC 290 ms
79,388 KB
testcase_17 AC 215 ms
79,376 KB
testcase_18 AC 244 ms
79,368 KB
testcase_19 AC 354 ms
79,560 KB
testcase_20 AC 354 ms
79,700 KB
testcase_21 AC 83 ms
77,600 KB
testcase_22 AC 84 ms
77,568 KB
testcase_23 AC 81 ms
77,912 KB
testcase_24 AC 82 ms
77,748 KB
testcase_25 AC 80 ms
77,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

q = int(input())

N = 10**5+50
import math

L = [0]*(N+1)
for i in range(1, N+1):
    L[i] = L[i-1]+math.log(i)

for i in range(q):
    n, m, k = map(int, input().split())
    F = L[n]-L[n-k]-L[k]+math.log(m)
    S = math.log(n-k+1)+k*math.log(m)
    if F < S:
        print('Flush')
    else:
        print('Straight')
0