結果
| 問題 | No.2922 Rose Garden |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-10-02 01:16:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 85,400 KB |
| 実行使用メモリ | 108,032 KB |
| 最終ジャッジ日時 | 2026-04-18 10:22:41 |
| 合計ジャッジ時間 | 5,262 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")