結果

問題 No.1220 yukipoker
ユーザー takakintakakin
提出日時 2020-09-09 23:11:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 14,848 KB
最終ジャッジ日時 2024-05-09 19:47:24
合計ジャッジ時間 5,001 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
14,848 KB
testcase_01 AC 62 ms
14,720 KB
testcase_02 AC 61 ms
14,720 KB
testcase_03 AC 63 ms
14,720 KB
testcase_04 AC 62 ms
14,848 KB
testcase_05 AC 61 ms
14,720 KB
testcase_06 AC 62 ms
14,720 KB
testcase_07 AC 59 ms
14,848 KB
testcase_08 AC 61 ms
14,720 KB
testcase_09 AC 62 ms
14,720 KB
testcase_10 AC 61 ms
14,848 KB
testcase_11 AC 197 ms
14,720 KB
testcase_12 AC 201 ms
14,720 KB
testcase_13 WA -
testcase_14 AC 349 ms
14,720 KB
testcase_15 AC 246 ms
14,720 KB
testcase_16 WA -
testcase_17 AC 179 ms
14,720 KB
testcase_18 AC 220 ms
14,720 KB
testcase_19 AC 369 ms
14,720 KB
testcase_20 AC 380 ms
14,720 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
import math

A=[1]
for i in range(10**5):
	A.append(A[-1]+math.log(i+1))

q=int(input())
for _ in range(q):
	n,m,k=map(int,input().split())
	f=A[n]
	s=(k-1)*math.log(m)+A[k]+A[n-k+1]
	if f<s:
		print("Flush")
	else:
		print("Straight")
0