結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
![]() |
提出日時 | 2017-07-10 23:06:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 1,611 ms |
コンパイル使用メモリ | 167,456 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 07:17:27 |
合計ジャッジ時間 | 5,514 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 20 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n,N) for(ll i=(n);i<(ll) N;i++) #define p(s) cout<<(s)<<endl typedef long long ll; using namespace std; int main() { ll q,d,x; ll s,t; cin>>q; REP(j,0,q){ scanf("%d%d%ld",&d,&x,&t); s=1; REP(i,0,d){ s=s*(x+i)/i; if(s>t)break; } p(s<=t?"AC":"ZETUBOU"); } return 0; }