結果

問題 No.250 atetubouのzetubou
ユーザー hirokazu1020hirokazu1020
提出日時 2015-07-24 22:58:06
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 765 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 75,984 KB
実行使用メモリ 21,220 KB
最終ジャッジ日時 2023-09-22 22:44:52
合計ジャッジ時間 2,390 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 9 ms
20,936 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 10 ms
21,064 KB
testcase_21 AC 9 ms
21,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<sstream>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<numeric>
#include<functional>
#include<algorithm>
#include<bitset>
using namespace std;

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define uniq(v) v.erase(unique(all(v)),v.end())
#define indexOf(v,x) (find(all(v),x)-v.begin())

#define INF (1LL<<50)

long long dp[1501][1501];

int main(){
	dp[0][0]=1;
	rep(i,1500){
		long long s=0;
		rep(j,1501){
			s=min(s+dp[i][j],INF);
			dp[i+1][j]=s;
		}
	}
	int q;
	cin>>q;
	rep(i,q){
		int d,x,t;
		cin>>d>>x>>t;
		if(dp[d][x]<=t)cout<<"AC"<<endl;
		else cout<<"ZETUBOU"<<endl;
	}
	return 0;
}
0