結果
問題 |
No.2922 Rose Garden
|
ユーザー |
|
提出日時 | 2024-10-12 15:29:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 553 bytes |
コンパイル時間 | 1,626 ms |
コンパイル使用メモリ | 168,116 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 15:30:00 |
合計ジャッジ時間 | 4,766 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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]; ll now=vec[0]; rep(i,N,1){ if(vec[i]>now+S*B){ cout<<"No"<<endl; return 0; } now=vec[i]; } cout<<"Yes"<<endl; }