結果
| 問題 | No.250 atetubouのzetubou |
| コンテスト | |
| ユーザー |
kyabaria
|
| 提出日時 | 2018-09-15 13:57:49 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 460 bytes |
| 記録 | |
| コンパイル時間 | 1,040 ms |
| コンパイル使用メモリ | 179,540 KB |
| 実行使用メモリ | 185,812 KB |
| 最終ジャッジ日時 | 2026-04-01 15:29:11 |
| 合計ジャッジ時間 | 2,683 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
typedef long long ll;
#define INF 1000000000
using namespace std;
#define N 1000000
#define MOD 1000000007
int main(void){
int q;
cin>>q;
for(int i=0;i<q;i++){
ll d,x,s,t;
cin>>d>>x>>t;
s=1;
for(int i=1;i<d;i++){
s=s*(x+i)/i;
if(s>t)break;
}
if(s<=t){
cout<<"AC"<<endl;
}else{
cout<<"ZETUBOU"<<endl;
}
}
}
kyabaria