結果

問題 No.2922 Rose Garden
ユーザー ymsksky
提出日時 2024-10-12 16:16:11
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 70 ms / 3,000 ms
+ 783µs
コード長 234 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 79 ms
コンパイル使用メモリ 64,152 KB
実行使用メモリ 88,792 KB
最終ジャッジ日時 2026-11-02 01:58:20
合計ジャッジ時間 6,021 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 53
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n, s, b = map(int, input().split())
hl = list(map(int, input().split()))
h = hl[0]
h_max = h
for g in hl[1:]:
    if h + s*b < g and h_max < g:
        print("No")
        exit()
    h_max = max(h_max, h + s*b)
    h = g
print("Yes")
0