← All problems‹ PrevNext ›Find the Missing NumberEasy#arrays#math· solved by 0 · time limit 2.0 sThe array holds n−1n-1n−1 distinct numbers from 111 to nnn; one is missing. Find it.InputThe count n−1n-1n−1, then the n−1n-1n−1 numbers.OutputThe missing number.Constraints2≤n≤1062 \le n \le 10^62≤n≤106Sample 1Input7 3 7 1 2 8 4 5 Output6