結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-29 16:44:18 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,069 bytes |
| コンパイル時間 | 1,135 ms |
| コンパイル使用メモリ | 158,332 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 12:50:40 |
| 合計ジャッジ時間 | 1,973 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 20 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#ifdef __unix__
#include <bits/stdc++.h>
#else
#include "bits\stdc++.h"
#endif
#include <vector>
#include <set>
#include <string>
#include <queue>
#include <list>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;
#define VI vector<int>
#define ll long long
#define ull unsigned ll
typedef long double ld;
#define SQR(X) ( (X)*(X) )
#define CUBE(X) ( (X)*(X)*(X) )
ull pow(ull x,ull n) {
ull res = 1;
while(n > 0) {
if(n&1) res = res * x;
x = x * x;
n >>= 1;
}
return res;
}
int main() {
int i,j,k;
int q;
int d,x,t;
ull tle = (int)1e15;
cin >> q;
while(cin >> d >> x >> t) {
ull a=1;
double n=x+d-1,r=x;
if(r > n/2) r = n - r;
for(i=0;i<r;i++) {
a *= n-i;
a /= i+1;
if(a >= tle) goto end;
}
end:
if(a > t) puts("ZETUBOU");
else puts("AC");
}
return 0;
}
//
//signed main() {
// int i,j,k,l;
// cin.tie(0);
// ios::sync_with_stdio(false);
// bool test = 1;
// return 0;
//}