結果
問題 | No.2922 Rose Garden |
ユーザー |
|
提出日時 | 2024-10-12 16:16:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 97 ms / 3,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 82,144 KB |
実行使用メモリ | 109,204 KB |
最終ジャッジ日時 | 2024-10-12 16:16:19 |
合計ジャッジ時間 | 5,687 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
n, s, b = map(int, input().split()) hl = list(map(int, input().split())) h = hl[0] h_max = h for g in hl[1:]: if h + s*b < g and h_max < g: print("No") exit() h_max = max(h_max, h + s*b) h = g print("Yes")