結果

問題 No.2922 Rose Garden
ユーザー splash9494
提出日時 2025-05-04 12:08:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 3,000 ms
コード長 270 bytes
コンパイル時間 690 ms
コンパイル使用メモリ 82,348 KB
実行使用メモリ 99,032 KB
最終ジャッジ日時 2025-05-04 12:08:24
合計ジャッジ時間 7,592 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

# https://yukicoder.me/problems/no/2922

N, S, B = list(map(int, input().split(' ')))
H = list(map(int, input().split(' ')))
h1 = H[0]
for i in range(N-1):
    h1, h2 = max(h1, H[i]), H[i+1]
    if not (h1 + S * B) >= h2:
        print('No')
        exit()
print('Yes')
0