Score : 1200 points
There are infinitely many cards, numbered 1, 2, 3, ... Initially, Cards x_1, x_2, ..., x_N are face up, and the others are face down.
Snuke can perform the following operation repeatedly:
Snuke's objective is to have all the cards face down. Find the minimum number of operations required to achieve the objective.
Input is given from Standard Input in the following format:
N x_1 x_2 ... x_N
Print the minimum number of operations required to achieve the objective.
2 4 5
2
Below is one way to achieve the objective in two operations:
9 1 2 3 4 5 6 7 8 9
3
Below is one way to achieve the objective in three operations:
2 1 10000000
4