結果

問題 No.250 atetubouのzetubou
ユーザー daku9640daku9640
提出日時 2017-02-24 20:46:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 802 bytes
コンパイル時間 1,452 ms
コンパイル使用メモリ 161,236 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2025-01-02 22:23:37
合計ジャッジ時間 3,249 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

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;
int main() {
	int q; cin >> q;
	rep(i, 0, q) {
		int d, x, t; cin >> d >> x >> t;
		if (d == 1) {
			if(d <= t) P("AC");
			else P("ZETUBOU");
		} else {
			P(d * ++x <= t ? "AC" : "ZETUBOU");
		}
	}
	return 0;
}
0