結果

問題 No.1220 yukipoker
ユーザー takakintakakin
提出日時 2020-09-09 23:16:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 326 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 12,424 KB
最終ジャッジ日時 2023-08-22 14:11:19
合計ジャッジ時間 4,855 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
12,280 KB
testcase_01 AC 54 ms
12,136 KB
testcase_02 AC 53 ms
12,204 KB
testcase_03 AC 53 ms
12,320 KB
testcase_04 AC 54 ms
12,376 KB
testcase_05 AC 53 ms
12,200 KB
testcase_06 AC 53 ms
12,320 KB
testcase_07 AC 52 ms
12,284 KB
testcase_08 AC 52 ms
12,296 KB
testcase_09 AC 53 ms
12,204 KB
testcase_10 AC 53 ms
12,288 KB
testcase_11 AC 175 ms
12,140 KB
testcase_12 AC 183 ms
12,424 KB
testcase_13 AC 321 ms
12,380 KB
testcase_14 AC 315 ms
12,164 KB
testcase_15 AC 218 ms
12,284 KB
testcase_16 AC 247 ms
12,164 KB
testcase_17 AC 164 ms
12,132 KB
testcase_18 AC 197 ms
12,140 KB
testcase_19 AC 324 ms
12,296 KB
testcase_20 AC 326 ms
12,372 KB
testcase_21 AC 53 ms
12,296 KB
testcase_22 AC 52 ms
12,280 KB
testcase_23 AC 52 ms
12,292 KB
testcase_24 AC 53 ms
12,288 KB
testcase_25 AC 52 ms
12,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

A=[0]
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