結果

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

ソースコード

diff #

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

int main() {
    int q;cin>>q;
    ll c[3000][3000];
    for (int i=0;i<3000;i++) {
        c[i][0]=1;
        c[i][i]=1;
    }
    for (int i=2;i<3000;i++)
        for (int j=1;j<i;j++)
            c[i][j]=min((ll)1e15+1,c[i-1][j]+c[i-1][j-1]);
    while (q--) {
        ll d,x,t;
        cin>>d>>x>>t;
        if (c[d+x-1][d-1] > t) puts("ZETUBOU");
        else puts("AC");
    }
    return 0;
}
0