CodeForces - 1076E
Problem Description:
Vasya has a tree consisting of n vertices with root in vertex 1. At first all vertices has 0 written on it.
......
B
CodeForces - 888A
You are given an array a. Some element of this array ai is a local minimum iff it is strictly less than both of its neighbours (t ......