結果

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

ソースコード

diff #

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

h_max = 0
ans = "Yes"
for h in H:
    if h > h_max + S*B:
        ans = "No"
        break
    h_max = max(h_max, h)
print(ans)
0