結果
| 問題 |
No.1220 yukipoker
|
| ユーザー |
kyoprouno
|
| 提出日時 | 2020-09-04 22:01:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 1,048 bytes |
| コンパイル時間 | 1,942 ms |
| コンパイル使用メモリ | 173,860 KB |
| 実行使用メモリ | 13,640 KB |
| 最終ジャッジ日時 | 2024-11-26 12:50:07 |
| 合計ジャッジ時間 | 32,881 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 WA * 2 TLE * 10 |
ソースコード
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define pll pair<ll,ll>
#define pii pair<int,int>
#define pq priority_queue
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define endl '\n'
#define ios ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define lb(c,x) distance(c.begin(),lower_bound(all(c),x))
#define ub(c,x) distance(c.begin(),upper_bound(all(c),x))
using namespace std;
const long double eps=1e-9;
int main(){
ll q;
cin >> q;
while(q--){
ll n,m,k;
cin >> n >> m >> k;
long double p=n;
long double q=m;
long double r=k;
long double ans=1.0;
bool flush=true;
for(ll i=k-1;i>=1;i--){
long double s=i;
ans*=(p-(r-i))/(q*s);
if(ans>r+eps){
flush=false;
break;
}
}
if(flush) cout << "Flush" << endl;
else cout << "Straight" << endl;
}
return 0;
}
kyoprouno