結果

問題 No.250 atetubouのzetubou
ユーザー daku9640daku9640
提出日時 2017-02-24 21:26:40
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 1,007 bytes
コンパイル時間 1,778 ms
コンパイル使用メモリ 168,712 KB
実行使用メモリ 20,836 KB
最終ジャッジ日時 2023-08-30 23:13:35
合計ジャッジ時間 3,532 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
20,552 KB
testcase_01 AC 22 ms
20,780 KB
testcase_02 AC 35 ms
20,576 KB
testcase_03 AC 36 ms
20,680 KB
testcase_04 AC 34 ms
20,736 KB
testcase_05 AC 35 ms
20,664 KB
testcase_06 AC 31 ms
20,668 KB
testcase_07 AC 26 ms
20,732 KB
testcase_08 AC 33 ms
20,836 KB
testcase_09 AC 30 ms
20,572 KB
testcase_10 AC 34 ms
20,736 KB
testcase_11 AC 28 ms
20,608 KB
testcase_12 AC 33 ms
20,796 KB
testcase_13 AC 27 ms
20,556 KB
testcase_14 AC 20 ms
20,668 KB
testcase_15 AC 37 ms
20,664 KB
testcase_16 AC 36 ms
20,560 KB
testcase_17 AC 36 ms
20,836 KB
testcase_18 AC 36 ms
20,684 KB
testcase_19 AC 36 ms
20,556 KB
testcase_20 AC 20 ms
20,732 KB
testcase_21 AC 20 ms
20,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
#define P(x) cout << (x) << endl
#define p(x) cout << (x)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define rep(i,a,n) for(int i=(a), i##_len=(n); i<i##_len; ++i)
#define rrep(i,a,n) for(int i=(a); i>n; --i)
#define len(x) ((int)(x).size())
#define mp make_pair
#define eb emplace_back
typedef long long ll;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<long long> vll;
typedef vector<string> vs;
typedef vector<bool> vb;
const constexpr ll INF = 1LL<<55;
constexpr int MAX = 1505;
vector<vll> dp(MAX, vll(MAX, 1LL));
int main() {
	rep(i, 0, MAX) {
		rep(j, 0, MAX) {
			if(i == 0 || j == 0) dp[i][j] = 1LL;
			else {
				dp[i][j] = dp[i - 1][j] + dp[i][j - 1];
				if(dp[i][j] > INF) dp[i][j] = INF;
			}
		}
	}
	int q; cin >> q;
	rep(i, 0, q) {
		ll d, x, t; cin >> d >> x >> t;
		P(dp[d - 1][x] <= t ? "AC" : "ZETUBOU");
	}
	return 0;
}
0