A demolition crew placed N bombs in a row. The bombs are numbered 1 to N from left to right. Bomb i sits at coordinate xi and has destructive power pi.
Every timer was set to the same duration, but the crew planted the bombs starting from the right, so a bomb further to the right goes off slightly earlier. The detonation order is bomb N, bomb N−1, ..., bomb 1.
When bomb i detonates, it destroys everything within distance pi to its left, that is, everything in the coordinate interval [xi−pi, xi]. Bombs that have not gone off yet are destroyed too. A destroyed bomb never detonates, and it counts as a dud.
To cut down on duds you plant one extra bomb. You may place it at any coordinate greater than xN and give it as much destructive power as you want, and it always detonates before every bomb that is already on the ground. Bombs destroyed by the extra bomb count as duds too. You may also place the extra bomb so that it destroys nothing.
Find the smallest number of duds you can end up with after planting one extra bomb.