結果

問題 No.1220 yukipoker
ユーザー mkawa2mkawa2
提出日時 2021-07-15 08:21:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,061 bytes
コンパイル時間 689 ms
コンパイル使用メモリ 11,056 KB
実行使用メモリ 12,532 KB
最終ジャッジ日時 2023-09-17 12:56:47
合計ジャッジ時間 7,510 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
12,360 KB
testcase_01 AC 53 ms
12,528 KB
testcase_02 AC 53 ms
12,392 KB
testcase_03 AC 53 ms
12,360 KB
testcase_04 AC 53 ms
12,484 KB
testcase_05 AC 52 ms
12,480 KB
testcase_06 AC 53 ms
12,380 KB
testcase_07 AC 52 ms
12,528 KB
testcase_08 AC 52 ms
12,532 KB
testcase_09 AC 52 ms
12,372 KB
testcase_10 AC 51 ms
12,484 KB
testcase_11 AC 176 ms
12,424 KB
testcase_12 AC 185 ms
12,484 KB
testcase_13 AC 333 ms
12,308 KB
testcase_14 AC 319 ms
12,484 KB
testcase_15 AC 222 ms
12,372 KB
testcase_16 AC 251 ms
12,336 KB
testcase_17 AC 164 ms
12,512 KB
testcase_18 AC 199 ms
12,384 KB
testcase_19 AC 338 ms
12,348 KB
testcase_20 AC 333 ms
12,360 KB
testcase_21 AC 52 ms
12,376 KB
testcase_22 AC 52 ms
12,492 KB
testcase_23 WA -
testcase_24 AC 53 ms
12,372 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# sys.setrecursionlimit(200005)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
def SI(): return sys.stdin.readline().rstrip()
# dij = [(0, 1), (-1, 0), (0, -1), (1, 0)]
dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)]
inf = 10**16
md = 998244353
# md = 10**9+7

from math import log

def nCr(com_n, com_r):
    if com_r < 0: return 0
    if com_n < com_r: return 0
    return fac[com_n]-fac[com_r]-fac[com_n-com_r]

# 準備
n_max = 100005
fac = [0]
for i in range(1, n_max+1): fac.append(fac[-1]+log(i))

def solve():
    n, m, k = LI()
    f = nCr(n, k)+log(m)
    s = log(n)+k*log(m)
    if n == k: s = k*log(m)
    if f < s: print("Flush")
    else: print("Straight")

for _ in range(II()):
    solve()
0