結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
|
提出日時 | 2020-04-26 03:13:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 368 bytes |
コンパイル時間 | 2,754 ms |
コンパイル使用メモリ | 191,796 KB |
最終ジャッジ日時 | 2025-01-10 01:48:03 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 13 |
コンパイルメッセージ
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*=d+x-1-i; ans/=d-1-i; if(ans>1e20) break; } puts(!(ans>1e20)&&lint(ans+0.5)<=t?"AC":"ZETUBOU"); } return 0; }