結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
|
提出日時 | 2017-01-09 02:00:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 786 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-17 23:54:54 |
合計ジャッジ時間 | 1,556 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 WA * 19 |
コンパイルメッセージ
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*=(d+x-i);a/=i; if(a>t)return false; } return true; } 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; } }