結果

問題 No.250 atetubouのzetubou
ユーザー aaaaaaiuaaaaaaiu
提出日時 2019-08-10 19:54:25
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 467 bytes
コンパイル時間 2,009 ms
コンパイル使用メモリ 197,688 KB
実行使用メモリ 73,420 KB
最終ジャッジ日時 2023-09-26 23:39:40
合計ジャッジ時間 3,954 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
73,420 KB
testcase_01 AC 25 ms
72,568 KB
testcase_02 AC 43 ms
72,640 KB
testcase_03 AC 50 ms
72,032 KB
testcase_04 AC 43 ms
72,480 KB
testcase_05 AC 43 ms
72,972 KB
testcase_06 AC 38 ms
72,788 KB
testcase_07 AC 30 ms
72,604 KB
testcase_08 AC 41 ms
72,356 KB
testcase_09 AC 36 ms
72,744 KB
testcase_10 AC 42 ms
72,700 KB
testcase_11 AC 34 ms
72,244 KB
testcase_12 AC 41 ms
72,444 KB
testcase_13 AC 32 ms
72,652 KB
testcase_14 AC 22 ms
72,592 KB
testcase_15 AC 43 ms
72,564 KB
testcase_16 AC 43 ms
73,024 KB
testcase_17 AC 42 ms
72,860 KB
testcase_18 AC 42 ms
72,532 KB
testcase_19 AC 43 ms
72,616 KB
testcase_20 AC 22 ms
72,552 KB
testcase_21 AC 22 ms
72,520 KB
権限があれば一括ダウンロードができます

ソースコード

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