結果
問題 | No.250 atetubouのzetubou |
ユーザー |
![]() |
提出日時 | 2017-07-10 23:20:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 74 ms / 5,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 1,629 ms |
コンパイル使用メモリ | 167,420 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 07:17:46 |
合計ジャッジ時間 | 3,082 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>#define REP(i,n,N) for(ll i=(n);i<(ll) N;i++)#define p(s) cout<<(s)<<endltypedef 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,1,d){s=s*(x+i)/i;if(s>t)break;}p(s<=t?"AC":"ZETUBOU");}return 0;}