結果

問題 No.250 atetubouのzetubou
ユーザー machy
提出日時 2015-07-24 22:37:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 421 ms
コンパイル使用メモリ 54,520 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 13:17:23
合計ジャッジ時間 1,385 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;
typedef long long LL;

int main(){
    int Q;
    cin >> Q;
    for(int q = 0; q < Q; q++){
        LL d, x, t;
        cin >> d >> x >> t;
        LL v = 1;
        bool flag = false;
        for(int i = 0; i < d-1; i++){
            v *= x + i + 1;
            t *= i + 1;
            if(v > t){
                flag = true;
                break;
            }
        }
        if(flag){
            cout << "ZETUBOU" << endl;
        }else{
            cout << "AC" << endl;
        }
    }
    return 0;
}
0