| acmsguru |
|---|
| Finished |
). The second line contains integer numbers y1,..., yn. Points (1, y1) and (n, yn) are initial positions of alpinists. It is guaranteed that y1=0, yn=0 and y1,..., yn do not exceed
by absolute value. YES", otherwise output "
NO" (quotes for clarity).
sample input | sample output |
7 0 3 1 5 2 4 0 | YES |
| Name |
|---|


