結果

問題 No.2922 Rose Garden
ユーザー ルク
提出日時 2024-10-12 14:49:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 108 ms / 3,000 ms
コード長 241 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 107,520 KB
最終ジャッジ日時 2024-10-12 14:50:09
合計ジャッジ時間 5,177 ms
ジャッジサーバーID
(参考情報)
judge5 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

n,s,b=map(int,input().split())
h=list(map(int,input().split()))
k=[h[0]]
for i in range(n-1):
  if k[-1]<h[i+1]:
    k.append(h[i+1])
for i in range(len(k)-1):
  if s*b>=(k[i+1]-k[i]):
    pass
  else:
    print("No")
    exit()
print("Yes")
0