結果
| 問題 | 
                            No.512 魔法少女の追いかけっこ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tenkyu9
                         | 
                    
| 提出日時 | 2018-03-25 02:41:07 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 459 bytes | 
| コンパイル時間 | 653 ms | 
| コンパイル使用メモリ | 80,264 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-27 06:57:37 | 
| 合計ジャッジ時間 | 1,973 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 53 | 
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<climits>
using namespace std;
typedef long long int ll;
int main(){
	int n;
	double x, y, a[80];
	cin >> x >> y >> n;
	for(int i=0; i<n; i++){
		cin >> a[i];
	}
	for(int i=1; i<n; i++){
		if(a[i]*x<a[i-1]*y){
			cout << "NO" << endl;
			return 0;
		}
	}
	cout << "YES" << endl;
  return 0;
}
            
            
            
        
            
tenkyu9