結果

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

ソースコード

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 << "ZATUBOU" << endl;
        }else{
            cout << "AC" << endl;
        }
    }
    return 0;
}
0