結果

問題 No.2922 Rose Garden
コンテスト
ユーザー ymsksky
提出日時 2024-10-12 16:16:11
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 66 ms / 3,000 ms
コード長 234 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 572 ms
コンパイル使用メモリ 84,864 KB
実行使用メモリ 110,208 KB
最終ジャッジ日時 2026-04-29 18:27:56
合計ジャッジ時間 4,729 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

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