結果
| 問題 |
No.2922 Rose Garden
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-10-02 01:16:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 107,848 KB |
| 最終ジャッジ日時 | 2024-10-02 01:16:50 |
| 合計ジャッジ時間 | 6,210 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 WA * 1 |
ソースコード
N, S, B = map(int, input().split())
H = list(map(int, input().split()))
now_height = H[0]
for i in range(1, N):
if H[i] <= now_height + S:
continue
elif H[i] <= now_height + B * S:
now_height = H[i]
else:
print("No")
exit()
print("Yes")