結果
問題 | No.1220 yukipoker |
ユーザー |
![]() |
提出日時 | 2020-09-05 01:47:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 319 ms / 2,000 ms |
コード長 | 437 bytes |
コンパイル時間 | 3,390 ms |
コンパイル使用メモリ | 194,092 KB |
最終ジャッジ日時 | 2025-01-14 06:39:19 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
#define rep(i, n) for (int i = 0; i < (int)(n); i++)#define ALL(v) v.begin(), v.end()typedef long long ll;#include <bits/stdc++.h>using namespace std;double A[100010];int main(){int q;cin>>q;for(int i=1;i<100010;i++){A[i]=A[i-1]+log(i);}while(q--){int n,m,k;cin>>n>>m>>k;if(A[n]>A[n-k+1]+A[k]+(k-1)*log(m)) cout<<"Straight"<<endl;else cout<<"Flush"<<endl;}return 0;}