結果

問題 No.1220 yukipoker
ユーザー marroncastle
提出日時 2020-09-04 22:15:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 135,552 KB
最終ジャッジ日時 2024-11-26 13:13:44
合計ジャッジ時間 32,106 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 WA * 13 TLE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

def calc(N,K,M):
  ans = 1
  for i in range(K):
    ans *= N-K+1+i
    ans /= (i+1)*M
  ans *= M/(N-K+1)
  if ans>1:
    return 'Straight'
  return 'Flush'
def solve():
  Q = int(input())
  ans = [0]*Q
  for i in range(Q):
    N, M, K = map(int, input().split())
    ans[i] = calc(N,K,M)
  return ans
print(*solve(),sep='\n')
0