結果
| 問題 | No.2922 Rose Garden |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 15:52:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 107,776 KB |
| 最終ジャッジ日時 | 2024-10-12 15:52:40 |
| 合計ジャッジ時間 | 4,735 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 25 |
ソースコード
N,S,B=map(int,input().split())
H=list(map(int,input().split()))
curh=H[0]
curs=S
for i,h in enumerate(H[1:],1):
if h<=curh+B*curs:
curh+=B*curs
curs=0
else:
curh=H[i-1]
curs=S
if h<=curh+B*curs:
curh+=B*curs
curs=0
else:
exit(print("No"))
print("Yes")