結果

問題 No.250 atetubouのzetubou
ユーザー aaaaaaiu
提出日時 2019-08-10 19:35:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 2,239 ms
コンパイル使用メモリ 191,444 KB
最終ジャッジ日時 2025-01-07 11:38:44
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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