結果

問題 No.1220 yukipoker
ユーザー daikisuyamadaikisuyama
提出日時 2020-09-05 08:17:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 86,884 KB
最終ジャッジ日時 2023-08-18 10:47:30
合計ジャッジ時間 6,746 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
84,724 KB
testcase_01 AC 90 ms
84,664 KB
testcase_02 AC 88 ms
84,700 KB
testcase_03 AC 88 ms
84,608 KB
testcase_04 AC 84 ms
84,760 KB
testcase_05 AC 87 ms
84,608 KB
testcase_06 AC 87 ms
84,892 KB
testcase_07 AC 87 ms
84,856 KB
testcase_08 AC 85 ms
84,804 KB
testcase_09 AC 85 ms
84,868 KB
testcase_10 AC 86 ms
84,932 KB
testcase_11 AC 225 ms
86,796 KB
testcase_12 AC 224 ms
86,604 KB
testcase_13 AC 339 ms
86,700 KB
testcase_14 AC 326 ms
86,532 KB
testcase_15 AC 260 ms
86,732 KB
testcase_16 AC 278 ms
86,692 KB
testcase_17 AC 212 ms
86,884 KB
testcase_18 AC 238 ms
86,540 KB
testcase_19 AC 331 ms
86,872 KB
testcase_20 AC 340 ms
86,696 KB
testcase_21 AC 89 ms
84,668 KB
testcase_22 AC 87 ms
84,760 KB
testcase_23 AC 86 ms
84,668 KB
testcase_24 AC 89 ms
84,728 KB
testcase_25 AC 85 ms
84,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]>(a[n-k+1]-a[n-k])+(k-1)*(a[m]-a[m-1])])
0