結果

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

ソースコード

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