MISSING NUMBER
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
In the express lottery draw, N tickets were printed, each uniquely numbered from 1 to N. However, when the winning number was drawn, it was discovered that the ticket with that number was missing. Given the total number of tickets and the list of all available numbers, identify the missing number.
Input
The first line contains a non-negative integer N, where 1 ≤ N ≤ 10^6
. The second line lists (N-1) distinct natural numbers, each not exceeding N.
Output
The missing number.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 26%