結果

問題 No.250 atetubouのzetubou
ユーザー E31415926E31415926
提出日時 2016-04-01 17:31:12
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 503 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 55,608 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-10 07:07:12
合計ジャッジ時間 1,880 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,812 KB
testcase_01 AC 4 ms
6,944 KB
testcase_02 AC 23 ms
6,940 KB
testcase_03 AC 25 ms
6,940 KB
testcase_04 AC 22 ms
6,944 KB
testcase_05 AC 22 ms
6,944 KB
testcase_06 AC 19 ms
6,944 KB
testcase_07 AC 10 ms
6,944 KB
testcase_08 AC 21 ms
6,940 KB
testcase_09 AC 17 ms
6,944 KB
testcase_10 AC 23 ms
6,944 KB
testcase_11 AC 15 ms
6,940 KB
testcase_12 AC 21 ms
6,940 KB
testcase_13 AC 12 ms
6,944 KB
testcase_14 AC 2 ms
6,944 KB
testcase_15 AC 63 ms
6,948 KB
testcase_16 AC 64 ms
6,944 KB
testcase_17 AC 64 ms
6,940 KB
testcase_18 AC 66 ms
6,940 KB
testcase_19 AC 65 ms
6,944 KB
testcase_20 AC 2 ms
6,940 KB
testcase_21 AC 2 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main()
{
	unsigned long long q, *d, *x, *t, i, j, a;
	cin >> q;
	d = new unsigned long long[q];
	x = new unsigned long long[q];
	t = new unsigned long long[q];
	for (i = 0; i < q; i++)cin >> d[i] >> x[i] >> t[i];

	for (i = 0; i < q; i++) {
		a = 1;
		for (j = 1; j < d[i]; j++) {
			a = a*(x[i] + j) / j;
			if (a > t[i])break;
		}
		if (a > t[i])cout << "ZETUBOU" << endl;
		else cout << "AC" << endl;
	}
	delete[] t;
	delete[] x;
	delete[] d;
	return 0;
}
0