結果

問題 No.250 atetubouのzetubou
ユーザー sugim48sugim48
提出日時 2015-07-24 23:05:46
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 225 ms / 5,000 ms
コード長 1,147 bytes
コンパイル時間 623 ms
コンパイル使用メモリ 84,004 KB
実行使用メモリ 253,276 KB
最終ジャッジ日時 2023-09-22 22:50:18
合計ジャッジ時間 6,666 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 215 ms
253,244 KB
testcase_01 AC 203 ms
253,096 KB
testcase_02 AC 222 ms
253,224 KB
testcase_03 AC 225 ms
252,988 KB
testcase_04 AC 220 ms
253,148 KB
testcase_05 AC 220 ms
253,092 KB
testcase_06 AC 216 ms
253,252 KB
testcase_07 AC 212 ms
253,040 KB
testcase_08 AC 219 ms
253,092 KB
testcase_09 AC 217 ms
253,276 KB
testcase_10 AC 221 ms
253,004 KB
testcase_11 AC 211 ms
253,040 KB
testcase_12 AC 219 ms
253,140 KB
testcase_13 AC 216 ms
253,220 KB
testcase_14 AC 202 ms
253,252 KB
testcase_15 AC 225 ms
253,224 KB
testcase_16 AC 221 ms
253,080 KB
testcase_17 AC 221 ms
253,000 KB
testcase_18 AC 222 ms
253,204 KB
testcase_19 AC 224 ms
253,092 KB
testcase_20 AC 200 ms
252,996 KB
testcase_21 AC 200 ms
253,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };

ll MOD = 129402307;
ll _MOD = 129402306;
double EPS = 1e-10;

int main() {
	vector<vector<double> > a(4000, vector<double>(4000));
	vector<vector<ll> > c(4000, vector<ll>(4000));
	for (int i = 0; i < 4000; i++) {
		a[i][0] = 1;
		c[i][0] = 1;
		for (int j = 1; j <= i; j++) {
			a[i][j] = a[i - 1][j] + a[i - 1][j - 1];
			c[i][j] = a[i - 1][j] + c[i - 1][j - 1];
		}
	}
	int Q; cin >> Q;
	while (Q--) {
		int D, X; cin >> D >> X;
		ll T; cin >> T;
		if (a[X + D - 1][X] <= T * 2 && c[X + D - 1][X] <= T)
			cout << "AC" << endl;
		else
			cout << "ZETUBOU" << endl;
	}
}
0