結果
問題 | No.1220 yukipoker |
ユーザー |
|
提出日時 | 2020-09-05 08:17:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 325 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 85,760 KB |
最終ジャッジ日時 | 2024-11-27 15:01:52 |
合計ジャッジ時間 | 5,063 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
from math import log2from itertools import accumulatex=[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]>(a[n-k+1]-a[n-k])+(k-1)*(a[m]-a[m-1])])