結果
問題 | No.250 atetubouのzetubou |
ユーザー |
![]() |
提出日時 | 2018-09-15 13:57:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 67 ms / 5,000 ms |
コード長 | 460 bytes |
コンパイル時間 | 1,492 ms |
コンパイル使用メモリ | 165,888 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 00:12:12 |
合計ジャッジ時間 | 3,256 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>typedef long long ll;#define INF 1000000000using namespace std;#define N 1000000#define MOD 1000000007int 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;}}}