結果

問題 No.1220 yukipoker
ユーザー takakin
提出日時 2020-09-09 23:03:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 14,976 KB
最終ジャッジ日時 2024-12-17 12:50:08
合計ジャッジ時間 7,141 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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