結果

問題 No.2922 Rose Garden
ユーザー Nichi10p
提出日時 2024-10-12 15:14:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 172 ms / 3,000 ms
コード長 219 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 32,112 KB
最終ジャッジ日時 2024-10-12 15:14:39
合計ジャッジ時間 6,216 ms
ジャッジサーバーID
(参考情報)
judge1 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import accumulate, pairwise

N, S, B = map(int, input().split())
H = tuple(map(int, input().split()))

if all(h2 - h1 <= S*B for h1, h2 in pairwise(accumulate(H, max))):
  print('Yes')
else:
  print('No')
0