結果
問題 | No.2922 Rose Garden |
ユーザー |
👑 |
提出日時 | 2024-10-02 01:17:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 115 ms / 3,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 107,904 KB |
最終ジャッジ日時 | 2024-10-02 01:17:37 |
合計ジャッジ時間 | 5,912 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
ソースコード
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:continueelif H[i] <= now_height + B * S:now_height = H[i]else:print("No")exit()print("Yes")