結果

問題 No.1220 yukipoker
ユーザー ytftytft
提出日時 2021-05-14 00:41:25
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 463 bytes
コンパイル時間 6,656 ms
コンパイル使用メモリ 349,376 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-08 11:18:02
合計ジャッジ時間 10,983 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
6,676 KB
testcase_01 AC 5 ms
6,676 KB
testcase_02 AC 5 ms
6,676 KB
testcase_03 AC 4 ms
6,676 KB
testcase_04 AC 4 ms
6,676 KB
testcase_05 AC 4 ms
6,676 KB
testcase_06 AC 4 ms
6,676 KB
testcase_07 AC 4 ms
6,676 KB
testcase_08 AC 4 ms
6,676 KB
testcase_09 AC 4 ms
6,676 KB
testcase_10 AC 4 ms
6,676 KB
testcase_11 AC 104 ms
6,676 KB
testcase_12 AC 111 ms
6,676 KB
testcase_13 AC 218 ms
6,676 KB
testcase_14 AC 210 ms
6,676 KB
testcase_15 AC 136 ms
6,676 KB
testcase_16 AC 159 ms
6,676 KB
testcase_17 AC 93 ms
6,676 KB
testcase_18 AC 118 ms
6,676 KB
testcase_19 AC 226 ms
6,676 KB
testcase_20 AC 219 ms
6,676 KB
testcase_21 AC 4 ms
6,676 KB
testcase_22 AC 4 ms
6,676 KB
testcase_23 AC 4 ms
6,676 KB
testcase_24 AC 4 ms
6,676 KB
testcase_25 AC 4 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
    }
}
0