結果
| 問題 | No.2922 Rose Garden | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-13 02:11:22 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 91 ms / 3,000 ms | 
| コード長 | 760 bytes | 
| コンパイル時間 | 237 ms | 
| コンパイル使用メモリ | 82,444 KB | 
| 実行使用メモリ | 107,960 KB | 
| 最終ジャッジ日時 | 2024-10-13 02:11:28 | 
| 合計ジャッジ時間 | 5,102 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 50 | 
ソースコード
"""input"""
#int-input
# input = sys.stdin.readline
def II(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(MI())
#str-input
def SI(): return input()
def MSI(): return input().split()
def SI_L(): return list(SI())
def SI_LI(): return list(map(int, SI()))
#multiple-input
def LLI(n): return [LI() for _ in range(n)]
def LSI(n): return [SI() for _ in range(n)]
#1-indexを0-indexでinput
def MI_1(): return map(lambda x:int(x)-1, input().split())
def TI_1(): return tuple(MI_1())
def LI_1(): return list(MI_1())
n,s,b = MI()
h = LI()
now = h[0]
for i in range(n):
    if now <= h[i]:
        if (h[i]-now-1)//b+1 > s:
            print("No")
            exit()
        else:
            now = h[i]
else:
    print("Yes")
            
            
            
        