結果

問題 No.1220 yukipoker
ユーザー marroncastle
提出日時 2020-09-04 22:01:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 136,900 KB
最終ジャッジ日時 2024-11-26 12:51:11
合計ジャッジ時間 32,074 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 15 TLE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

def calc(N,K,M):
  ans = 1
  for i in range(K):
    ans *= N-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