結果
問題 |
No.1220 yukipoker
|
ユーザー |
|
提出日時 | 2020-09-04 22:56:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 82,464 KB |
実行使用メモリ | 137,884 KB |
最終ジャッジ日時 | 2024-11-26 20:52:22 |
合計ジャッジ時間 | 31,943 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 13 TLE * 10 |
ソースコード
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')