結果

問題 No.2922 Rose Garden
ユーザー ikoma
提出日時 2024-10-12 15:48:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 105,740 KB
最終ジャッジ日時 2024-10-12 15:48:32
合計ジャッジ時間 5,161 ms
ジャッジサーバーID
(参考情報)
judge3 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,S,B=map(int,input().split())
H=list(map(int,input().split()))

h = H[0]
ans = "Yes"
for hi in H[1:]:
    if hi <= h + S*B:
        h = hi
    else:
        ans = "No"
        break
print(ans)
0