結果

問題 No.1220 yukipoker
ユーザー 👑 tatyamtatyam
提出日時 2020-09-04 21:50:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 81,776 KB
実行使用メモリ 126,824 KB
最終ジャッジ日時 2024-05-04 22:10:43
合計ジャッジ時間 11,346 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 609 ms
115,308 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
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 #

from decimal import *
import sys
getcontext().prec = 100
input = sys.stdin.readline
fac = [None] * 100001
fac[0] = Decimal(1)
for i in range(1, 100001):
    fac[i] = fac[i - 1] * i
q = int(input())
while q:
    q -= 1
    n, m, k = map(int, input().split())
    if fac[n] * m > fac[k] * fac[n-k+1] * Decimal(k) ** m:
        print("Straight")
    else:
        print("Flush")
0