結果

問題 No.512 魔法少女の追いかけっこ
ユーザー uzumakiyorumunn
提出日時 2017-06-10 02:03:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 303 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 55,492 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 06:33:43
合計ジャッジ時間 1,679 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 48 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>

using namespace std;

#define NMAX 100000
int main(){

	double X,Y;
	double Xa;
	int N;
	double a;

	cin>>X>>Y;
	cin>>N;
	cin>>a;
	for(int i=0;i<N-1;i++){
		Xa=a/X;
		cin>>a;
		if(Xa*Y>a){
			cout<<"NO"<<endl;
			return 0;
		}
	}

	cout<<"YES"<<endl;
	return 0;
}			
0