結果

問題 No.1220 yukipoker
ユーザー googol_S0googol_S0
提出日時 2020-09-04 22:30:16
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 387 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 84,388 KB
最終ジャッジ日時 2023-08-17 17:15:13
合計ジャッジ時間 6,463 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
82,564 KB
testcase_01 AC 92 ms
82,300 KB
testcase_02 AC 90 ms
82,300 KB
testcase_03 AC 91 ms
82,344 KB
testcase_04 AC 92 ms
82,468 KB
testcase_05 AC 92 ms
82,300 KB
testcase_06 AC 92 ms
82,300 KB
testcase_07 AC 90 ms
82,448 KB
testcase_08 AC 91 ms
82,540 KB
testcase_09 AC 92 ms
82,612 KB
testcase_10 AC 92 ms
82,568 KB
testcase_11 AC 245 ms
84,132 KB
testcase_12 AC 257 ms
84,196 KB
testcase_13 AC 383 ms
84,136 KB
testcase_14 AC 379 ms
84,216 KB
testcase_15 AC 294 ms
84,296 KB
testcase_16 AC 315 ms
84,388 KB
testcase_17 AC 238 ms
84,224 KB
testcase_18 AC 267 ms
84,204 KB
testcase_19 AC 387 ms
84,080 KB
testcase_20 AC 387 ms
84,016 KB
testcase_21 AC 95 ms
82,612 KB
testcase_22 AC 96 ms
82,396 KB
testcase_23 AC 91 ms
82,396 KB
testcase_24 AC 96 ms
82,556 KB
testcase_25 AC 95 ms
82,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log2
fac=[0]
for i in range(100002):
  fac.append(fac[i]+log2(i+1))
Q=int(input())
N,M,K,X,Y=0,0,0,0,0
for i in range(Q):
  N,M,K=map(int,input().split())
  X=log2(M)+fac[N]-fac[N-K]-fac[K]
  Y=log2(N-K+1)+log2(M)*K
  if X<Y:
    print('Flush')
  else:
    print('Straight')
0