結果

問題 No.250 atetubouのzetubou
ユーザー kotatsugame
提出日時 2017-01-09 02:07:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 63,828 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-17 23:54:56
合計ジャッジ時間 1,792 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   15 | main()
      | ^~~~

ソースコード

diff #

#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 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;
	}
}
0