結果
問題 | No.1220 yukipoker |
ユーザー | nehan_der_thal |
提出日時 | 2020-09-04 22:02:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 307 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 82,772 KB |
実行使用メモリ | 78,208 KB |
最終ジャッジ日時 | 2024-11-26 12:51:55 |
合計ジャッジ時間 | 4,541 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
import math MX = 10**5 X = [0]*(MX+1) for i in range(2, MX+1): X[i] = X[i-1] + math.log(i) #print(X) Q, = map(int, input().split()) for _ in range(Q): N, M, K = map(int, input().split()) l = X[N] r = X[N-K+1]+X[K]+(K-1)*math.log(M) if l > r: print("Straight") else: print("Flush")