結果

問題 No.1220 yukipoker
ユーザー 37zigen37zigen
提出日時 2020-09-07 10:20:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 785 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 25,524 KB
最終ジャッジ日時 2023-08-19 16:29:50
合計ジャッジ時間 9,056 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
25,372 KB
testcase_01 AC 62 ms
25,328 KB
testcase_02 AC 67 ms
25,508 KB
testcase_03 AC 62 ms
25,324 KB
testcase_04 AC 64 ms
25,408 KB
testcase_05 AC 64 ms
25,316 KB
testcase_06 AC 62 ms
25,380 KB
testcase_07 AC 62 ms
25,460 KB
testcase_08 AC 65 ms
25,320 KB
testcase_09 AC 67 ms
25,336 KB
testcase_10 AC 64 ms
25,432 KB
testcase_11 AC 368 ms
25,424 KB
testcase_12 AC 386 ms
25,524 KB
testcase_13 AC 721 ms
25,360 KB
testcase_14 AC 703 ms
25,344 KB
testcase_15 AC 455 ms
25,336 KB
testcase_16 AC 535 ms
25,340 KB
testcase_17 AC 328 ms
25,484 KB
testcase_18 AC 444 ms
25,368 KB
testcase_19 AC 728 ms
25,448 KB
testcase_20 AC 785 ms
25,272 KB
testcase_21 AC 62 ms
25,344 KB
testcase_22 AC 62 ms
25,344 KB
testcase_23 AC 64 ms
25,416 KB
testcase_24 AC 64 ms
25,408 KB
testcase_25 AC 62 ms
25,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
import math
Q=int(input())
a=[math.log(i) for i in range(1,2*10**5)]
a=list(itertools.accumulate([0]+a))
for _ in range(Q):
    N,M,K=map(int,input().split())
    F=math.log(M)+a[N]-a[K]-a[N-K]
    S=math.log(N-K+1)+K*math.log(M)
    if F<S:
        print("Flush")
    else:
        print("Straight")
0