結果
| 問題 | No.250 atetubouのzetubou | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-04-26 03:18:10 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 33 ms / 5,000 ms | 
| コード長 | 358 bytes | 
| コンパイル時間 | 2,104 ms | 
| コンパイル使用メモリ | 191,272 KB | 
| 最終ジャッジ日時 | 2025-01-10 01:48:16 | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 20 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         int q; scanf("%d",&q);
      |                ~~~~~^~~~~~~~~
main.cpp:11:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |                 lint d,x,t; scanf("%lld%lld%lld",&d,&x,&t);
      |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
using lint=long long;
int main(){
	int q; scanf("%d",&q);
	rep(_,q){
		lint d,x,t; scanf("%lld%lld%lld",&d,&x,&t);
		long double ans=1;
		rep(i,d-1){
			ans*=x+i+1;
			ans/=i+1;
			if(ans>1e20) break;
		}
		puts(!(ans>1e20)&&ans<=t+0.5?"AC":"ZETUBOU");
	}
	return 0;
}
            
            
            
        