結果

問題 No.1220 yukipoker
ユーザー marroncastlemarroncastle
提出日時 2020-09-04 22:01:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 82,544 KB
最終ジャッジ日時 2023-08-17 15:38:53
合計ジャッジ時間 5,235 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
80,008 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

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