結果

問題 No.250 atetubouのzetubou
ユーザー aaaaaaiuaaaaaaiu
提出日時 2019-08-10 19:35:13
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 196,988 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-26 23:37:37
合計ジャッジ時間 4,304 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
4,376 KB
testcase_01 AC 4 ms
4,380 KB
testcase_02 AC 22 ms
4,380 KB
testcase_03 AC 25 ms
4,376 KB
testcase_04 AC 22 ms
4,380 KB
testcase_05 AC 23 ms
4,376 KB
testcase_06 AC 17 ms
4,380 KB
testcase_07 AC 10 ms
4,376 KB
testcase_08 AC 21 ms
4,376 KB
testcase_09 AC 16 ms
4,376 KB
testcase_10 AC 22 ms
4,380 KB
testcase_11 AC 14 ms
4,380 KB
testcase_12 AC 20 ms
4,380 KB
testcase_13 AC 12 ms
4,376 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 1 ms
4,376 KB
testcase_21 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int q;cin>>q;
    while (q--) {
        ll d,x,t;
        cin>>d>>x>>t;
        ll c=1;
        bool tle=false;
        for (int i=1;i<d;i++) {
            c=c*(x+i)/i;
            if (c>t) {
                tle=true;
                break;
                
                
            }
        }
        if (tle) puts("ZETUBOU");
        else puts("AC");
    }
    return 0;
}
0