結果
問題 |
No.1220 yukipoker
|
ユーザー |
![]() |
提出日時 | 2020-09-05 11:54:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 326 ms / 2,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 298 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 78,208 KB |
最終ジャッジ日時 | 2024-11-28 01:09:04 |
合計ジャッジ時間 | 4,987 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
q = int(input()) N = 10**5+50 import math L = [0]*(N+1) for i in range(1, N+1): L[i] = L[i-1]+math.log(i) for i in range(q): n, m, k = map(int, input().split()) F = L[n]-L[n-k]-L[k]+math.log(m) S = math.log(n-k+1)+k*math.log(m) if F < S: print('Flush') else: print('Straight')