結果
| 問題 | 
                            No.512 魔法少女の追いかけっこ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-12-31 23:57:52 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 388 bytes | 
| コンパイル時間 | 1,371 ms | 
| コンパイル使用メモリ | 169,872 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-13 10:59:20 | 
| 合計ジャッジ時間 | 3,030 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 52 WA * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
	ios::sync_with_stdio(false);
	cin.tie(0); 
	double x, y;
	cin >> x >> y;
	int n;
	cin >> n;
	vector<int> v(n);
	for(int i = 0; i < n; i++) {
		cin >> v[i];
	}
	for(int i = 0; i < n - 1; i++) {
		int t = 1.0 * v[i] * y / x;
		if(t > v[i + 1]) {
			cout << "NO" << endl;
			return 0;
		}
	}
	cout << "YES" << endl;
	return 0;
}