結果
| 問題 |
No.1220 yukipoker
|
| コンテスト | |
| ユーザー |
ayaoni
|
| 提出日時 | 2020-11-26 16:26:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 404 bytes |
| コンパイル時間 | 622 ms |
| コンパイル使用メモリ | 82,392 KB |
| 実行使用メモリ | 85,728 KB |
| 最終ジャッジ日時 | 2024-07-23 20:52:42 |
| 合計ジャッジ時間 | 3,332 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 WA * 15 |
ソースコード
import sys
from math import log
from itertools import accumulate
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
A = [0]+[log(i) for i in range(1,10**5+1)]
SA = list(accumulate(A))
Q = I()
for _ in range(Q):
N,M,K = MI()
if SA[N]-SA[N-K]-SA[K] < K*log(M)+log(N-K+1):
print('Flush')
else:
print('Straight')
ayaoni