結果

問題 No.2922 Rose Garden
ユーザー けんたろう
提出日時 2024-10-12 15:11:30
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 3,478 ms
コンパイル使用メモリ 274,016 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 15:11:39
合計ジャッジ時間 7,147 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;

int main(void)
{
	ll N, S, B; cin >> N >> S >> B;
	vector<ll> H(N); rep(i, N) cin >> H[i];

	rep(i, N-1)
	{
		if (H[i+1] - H[i] > S * B)
		{
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	return 0;
}
0