結果
| 問題 |
No.1220 yukipoker
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2021-05-14 00:41:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 221 ms / 2,000 ms |
| コード長 | 463 bytes |
| コンパイル時間 | 4,513 ms |
| コンパイル使用メモリ | 338,084 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 05:19:40 |
| 合計ジャッジ時間 | 8,641 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
typedef boost::multiprecision::cpp_int mp;
int main(){
int Q;
cin>>Q;
int range=100001;
vector<double> A(range),B(range);
for(double i=1;i<range;i++){
B[i]=log(i);
A[i]=A[i-1]+B[i];
}
for(int i=0;i<Q;i++){
int N,M,K;
cin>>N>>M>>K;
cout<<((A[N]-A[N-K+1]-A[K]<(K-1)*B[M])?"Flush":"Straight")<<endl;
}
}
ytft