結果

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

ソースコード

diff #

import heapq 
from heapq import heappop,heappush,heapify
from sys import stdin, setrecursionlimit
input = stdin.readline
readline = stdin.readline

from collections import deque
d=deque()

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