結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
|
提出日時 | 2017-01-09 02:16:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 74 ms / 5,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 602 ms |
コンパイル使用メモリ | 65,060 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-17 23:56:40 |
合計ジャッジ時間 | 2,070 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
コンパイルメッセージ
main.cpp:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 15 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; #define int long long long long t; bool c(int d,int x) { long long a=1; for(int i=1;i<d;i++) { a*=(x+i);a/=i; if(a>t)return false; } return a<=t; } main() { int n;cin>>n; for(int i=0;i<n;i++) { int d,x;cin>>d>>x>>t; cout<<(c(d,x)?"AC":"ZETUBOU")<<endl; } }