結果

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

ソースコード

diff #

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