結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-26 03:13:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 2,269 ms |
| コンパイル使用メモリ | 192,596 KB |
| 最終ジャッジ日時 | 2025-01-10 01:47:54 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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;
}
puts(!(ans>1e20)&&lint(ans+0.5)<=t?"AC":"ZETUBOU");
}
return 0;
}