結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-26 03:18:39 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 5,000 ms |
| コード長 | 321 bytes |
| コンパイル時間 | 1,989 ms |
| コンパイル使用メモリ | 191,156 KB |
| 最終ジャッジ日時 | 2025-01-10 01:48:35 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
puts(ans<t+0.5?"AC":"ZETUBOU");
}
return 0;
}