結果
問題 |
No.1220 yukipoker
|
ユーザー |
|
提出日時 | 2020-09-05 08:15:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 82,424 KB |
実行使用メモリ | 86,124 KB |
最終ジャッジ日時 | 2024-11-27 14:56:51 |
合計ジャッジ時間 | 5,318 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 25 |
ソースコード
from math import log2 from itertools import accumulate x=[0]+[log2(i) for i in range(1,10**5+1)] a=list(accumulate(x)) for _ in range(int(input())): n,m,k=map(int,input().split()) ans=["Flush","Straight"] print(ans[a[n]-a[n-k]-a[k]>x[n-k+1]-x[n-k]+(k-1)*(x[m]-x[m-1])])