結果
| 問題 |
No.2922 Rose Garden
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-10-12 15:00:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 104 ms / 3,000 ms |
| コード長 | 201 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 82,252 KB |
| 実行使用メモリ | 107,544 KB |
| 最終ジャッジ日時 | 2024-10-12 15:00:42 |
| 合計ジャッジ時間 | 5,227 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
n,S,B=map(int,input().split())
h=list(map(int,input().split()))
q=[]
for v in h:
if len(q)==0 or q[-1]<v:
q+=[v]
p=h[0]+S*B
for v in q:
if p<v:
print("No")
exit()
p=v+S*B
print("Yes")
sasa8uyauya