結果

問題 No.512 魔法少女の追いかけっこ
ユーザー face4
提出日時 2018-04-27 18:27:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 900 ms
コンパイル使用メモリ 58,460 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 21:44:25
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 51 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;

int main(){
    int x, y, n;
    cin >> x >> y >> n;
    int A[n];
    for(int i = 0; i < n; i++)  cin >> A[i];
    for(int i = 0; i < n; i++)  A[i] *= 100;
    
    for(int i = 0; i < n-1; i++){
        if(((double)A[i] / x * y) > A[i+1]){
            cout << "NO" << endl;
            return 0;
        }
    }

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