結果
| 問題 |
No.2922 Rose Garden
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 16:31:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 3,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 107,520 KB |
| 最終ジャッジ日時 | 2024-10-12 16:31:06 |
| 合計ジャッジ時間 | 4,853 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 50 |
ソースコード
n, s, b = map(int, input().split()) h = list(map(int, input().split())) preh = 0 maxh = 0 ret = "Yes" for i in h: maxh = max(maxh, preh+s*b) if maxh < i: ret = "No" break else: preh = i print(ret)