結果

問題 No.2922 Rose Garden
ユーザー nouka28
提出日時 2024-09-29 10:46:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 3,000 ms
コード長 184 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 83,020 KB
実行使用メモリ 107,772 KB
最終ジャッジ日時 2024-09-29 10:47:31
合計ジャッジ時間 4,796 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

n,s,b=map(int,input().split())

h=list(map(int,input().split()))

x=h[0]+s*b

for i in range(1,n):
    if x<h[i]:
        print("No")
        exit()
    x=max(x,h[i]+s*b)

print("Yes")
0