結果
問題 |
No.2922 Rose Garden
|
ユーザー |
![]() |
提出日時 | 2024-10-13 20:04:32 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 81,904 KB |
実行使用メモリ | 109,056 KB |
最終ジャッジ日時 | 2024-10-13 20:04:40 |
合計ジャッジ時間 | 6,661 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 35 WA * 15 |
ソースコード
N, S, B = map(int, input().split()) H = list(map(int, input().split())) highest = H[0] possible = H[0] + S*B for h in H[1:]: if h > possible: print('No') exit() if h > highest: highest = h possible += h + S*B print('Yes')