結果

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

ソースコード

diff #

n, s, b = map(int, input().split())
h = list(map(int, input().split()))
p = h[0]
ok = 1
for i in range(1, n):
    if p < h[i]:
        if s*b < h[i] - p:
            ok = 0
        p = h[i]
print("Yes" if ok else "No")
0