結果

問題 No.2922 Rose Garden
ユーザー noriaoki
提出日時 2024-10-12 15:09:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 3,000 ms
コード長 200 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 107,776 KB
最終ジャッジ日時 2024-10-12 15:09:43
合計ジャッジ時間 4,945 ms
ジャッジサーバーID
(参考情報)
judge2 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

n, s, b = map(int, input().split())
h = list(map(int, input().split()))
mx = 0
ans = 'Yes'
for i in range(n):
    if h[i] > mx + s*b:
        ans = 'No'
        break
    mx = max(h[i], mx)
print(ans)
0