結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
	double x, y;
	int n;
	cin >> x >> y >> n;
	double a[n];
	for(int i=0; i<n; i++) cin >> a[i];

	double b=a[n-1]/y;
	double c=b*x;
	if(c<a[n-2]) cout << "NO" << endl;
	else cout << "YES" << endl;

	return 0;
}
0