結果
| 問題 | No.2922 Rose Garden | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-12 15:55:07 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 544 bytes | 
| コンパイル時間 | 3,695 ms | 
| コンパイル使用メモリ | 274,264 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-12 15:55:15 | 
| 合計ジャッジ時間 | 7,488 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 25 WA * 25 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n,k); for(ll i = k; i < (int)(n); i++)
#define rep1(i, n) for(ll i = 0; i < (n); ++i)
using ll = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
int main() {
 ll N,S,B;
 cin>>N>>S>>B;
 vector<ll>vec(N);
 rep(i,N,0)cin>>vec[i];
 rep(i,N-1,0){
 	ll now=vec[i];
 	if(vec[i+1]>now+S*B){
 		cout<<"No"<<endl;
 		return 0;
 	}
 }
 cout<<"Yes"<<endl;
}
            
            
            
        