結果

問題 No.1220 yukipoker
ユーザー roarisroaris
提出日時 2020-09-05 17:01:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 161 ms / 2,000 ms
コード長 420 bytes
コンパイル時間 459 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 90,232 KB
最終ジャッジ日時 2023-08-19 09:07:40
合計ジャッジ時間 5,425 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
89,108 KB
testcase_01 AC 91 ms
89,016 KB
testcase_02 AC 91 ms
89,056 KB
testcase_03 AC 92 ms
88,960 KB
testcase_04 AC 91 ms
88,788 KB
testcase_05 AC 92 ms
89,072 KB
testcase_06 AC 91 ms
88,896 KB
testcase_07 AC 90 ms
88,804 KB
testcase_08 AC 92 ms
88,888 KB
testcase_09 AC 93 ms
88,756 KB
testcase_10 AC 92 ms
89,060 KB
testcase_11 AC 136 ms
89,996 KB
testcase_12 AC 136 ms
90,112 KB
testcase_13 AC 161 ms
90,108 KB
testcase_14 AC 159 ms
90,084 KB
testcase_15 AC 142 ms
89,928 KB
testcase_16 AC 145 ms
89,968 KB
testcase_17 AC 134 ms
90,124 KB
testcase_18 AC 140 ms
90,108 KB
testcase_19 AC 161 ms
90,232 KB
testcase_20 AC 161 ms
90,148 KB
testcase_21 AC 91 ms
89,084 KB
testcase_22 AC 93 ms
88,836 KB
testcase_23 AC 92 ms
89,076 KB
testcase_24 AC 93 ms
88,912 KB
testcase_25 AC 92 ms
88,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from math import log

logs = [-1]

for i in range(1, 10**5+10):
    logs.append(log(i))

acc = [0]

for logs_i in logs:
    acc.append(acc[-1]+logs_i)
    
for _ in range(int(input())):
    N, M, K = map(int, input().split())
    F = log(M)+acc[N+1]-acc[N-K+1]-(acc[K+1]-acc[1])
    S = log(N-K+1)+K*log(M)
    
    if F<S:
        print('Flush')
    else:
        print('Straight')
0