結果

問題 No.1220 yukipoker
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-10-25 13:56:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 769 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 12,356 KB
最終ジャッジ日時 2023-09-29 02:05:34
合計ジャッジ時間 10,080 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
12,296 KB
testcase_01 AC 42 ms
12,180 KB
testcase_02 AC 44 ms
12,280 KB
testcase_03 AC 43 ms
12,184 KB
testcase_04 AC 42 ms
12,184 KB
testcase_05 AC 42 ms
12,280 KB
testcase_06 AC 42 ms
12,260 KB
testcase_07 AC 43 ms
12,348 KB
testcase_08 AC 43 ms
12,216 KB
testcase_09 AC 42 ms
12,352 KB
testcase_10 AC 42 ms
12,212 KB
testcase_11 AC 345 ms
12,240 KB
testcase_12 AC 369 ms
12,240 KB
testcase_13 AC 715 ms
12,356 KB
testcase_14 AC 696 ms
12,336 KB
testcase_15 AC 457 ms
12,296 KB
testcase_16 AC 526 ms
12,284 KB
testcase_17 AC 317 ms
12,216 KB
testcase_18 AC 409 ms
12,280 KB
testcase_19 AC 769 ms
12,272 KB
testcase_20 AC 742 ms
12,304 KB
testcase_21 AC 43 ms
12,168 KB
testcase_22 AC 42 ms
12,192 KB
testcase_23 AC 44 ms
12,332 KB
testcase_24 AC 43 ms
12,272 KB
testcase_25 AC 43 ms
12,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log2
l = [0]
for i in range(2, 100001):
    l.append(l[-1] + log2(i))
for _ in range(int(input())):
    n, m, k = map(int, input().split())
    if l[n - 1] < l[n - k] + l[k - 1] + (k - 1) * log2(m):
        print("Flush")
    else:
        print("Straight")
0