Problem M
City Destruction
Modan is playing a new action strategy game, where his goal is to destroy a city.
A city is made up of
Modan is really addicted to the game and wants to know the minimum number of moves he needs to destroy a city.
Input
The first line contains a single integer
Output
For each test case, output a single line containing the minimum number of moves needed to destroy the city.
Sample Input 1 | Sample Output 1 |
---|---|
2 1 10 33 54 3 10 43 10 59 69 69 69 |
4 1 |