結果

問題 No.250 atetubouのzetubou
ユーザー sggkshiosggkshio
提出日時 2019-01-10 08:03:31
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 746 bytes
コンパイル時間 1,076 ms
コンパイル使用メモリ 83,688 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-03 04:01:44
合計ジャッジ時間 2,878 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
5,248 KB
testcase_01 AC 4 ms
5,376 KB
testcase_02 AC 25 ms
5,376 KB
testcase_03 AC 28 ms
5,376 KB
testcase_04 AC 23 ms
5,376 KB
testcase_05 AC 24 ms
5,376 KB
testcase_06 AC 18 ms
5,376 KB
testcase_07 AC 11 ms
5,376 KB
testcase_08 AC 23 ms
5,376 KB
testcase_09 AC 17 ms
5,376 KB
testcase_10 AC 24 ms
5,376 KB
testcase_11 AC 15 ms
5,376 KB
testcase_12 AC 22 ms
5,376 KB
testcase_13 AC 13 ms
5,376 KB
testcase_14 AC 1 ms
5,376 KB
testcase_15 AC 72 ms
5,376 KB
testcase_16 AC 73 ms
5,376 KB
testcase_17 AC 72 ms
5,376 KB
testcase_18 AC 74 ms
5,376 KB
testcase_19 AC 72 ms
5,376 KB
testcase_20 AC 2 ms
5,376 KB
testcase_21 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>
#include <fstream>
#include <cassert>
//#include <bits/stdc++.h>
using namespace std;

//#include<bits/stdc++.h>


	
int main() {
	int n;
	cin >> n;
	while (n--) {
		long long int a, b, c;
		cin >> a >> b >> c;
		long long int ans = 1;
		for (int i =1; i < a; i++) {
			ans = ans*(b + i) / i;
			if (ans > c)break;
		}
		
		if (ans <= c)cout << "AC" << endl;
		else cout << "ZETUBOU" << endl;

	}

	return 0;
}
0