結果

問題 No.1220 yukipoker
ユーザー marroncastlemarroncastle
提出日時 2020-09-04 22:56:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 82,756 KB
最終ジャッジ日時 2023-08-17 20:35:53
合計ジャッジ時間 5,393 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
75,616 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 79 ms
75,888 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 81 ms
75,776 KB
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 /= (i+1)
    if i>0:
      ans *= N-K+1+i
      ans /= M
  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