結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
![]() |
提出日時 | 2017-07-10 23:09:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 1,700 ms |
コンパイル使用メモリ | 166,516 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-07 07:17:37 |
合計ジャッジ時間 | 5,142 ms |
ジャッジサーバーID (参考情報) |
judge5 / 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){ cin>>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; }