結果

問題 No.1220 yukipoker
ユーザー NoviNovi
提出日時 2020-09-05 14:11:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 10,944 KB
実行使用メモリ 12,360 KB
最終ジャッジ日時 2023-08-18 23:27:20
合計ジャッジ時間 10,751 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
12,360 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 511 ms
8,396 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

q=int(input())

def modinv(a, mod=10**9+7):
    return pow(a, mod-2, mod)

def Comb(n, r, mod=10**9+7):
    r = min(r, n-r)
    res = 1
    for i in range(r):
        res = res * (n - i) * modinv(i+1, mod) % mod
    return res

for i in range(q):
    n,m,k=map(int,input().split())
    f=Comb(n,k)*m
    s=pow(m,k)*max(0, n-k+1)
    if f>s:
        print("Straight")
    else:
        print("Flush")
0