結果
問題 |
No.512 魔法少女の追いかけっこ
|
ユーザー |
![]() |
提出日時 | 2017-05-05 22:30:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 656 bytes |
コンパイル時間 | 1,712 ms |
コンパイル使用メモリ | 168,068 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-27 05:53:26 |
合計ジャッジ時間 | 2,756 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 43 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) REP(i,0,n) #define REP(i,s,e) for(int i=(s); i<(int)(e); i++) #define pb push_back #define all(r) r.begin(),r.end() #define rall(r) r.rbegin(),r.rend() #define fi first #define se second typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int INF = 1e9; const ll MOD = 1e9 + 7; double EPS = 1e-8; int main(){ int x, y, n; cin >> x >> y >> n; vi a(n); rep(i, n) cin >> a[i]; if(n == 1) { cout << "YES" << endl; return 0; } cout << ((ll)a[n-2] * y>= (ll)(a[n-1]) * x? "NO" : "YES") << endl; }