Problem2242--查找缺失的数字

2242: 查找缺失的数字

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定一个包含从 1 到 N 的整数的数组,其中一个数字在区间 [1, N] 之间丢失。请你找到这个丢失的数字,并输出。

Input

第一行输入一个N表示原数组的大小
第二行输入N-1个数字(数字范围在 1 到 N 之间,且没有重复的数字。
1<N<1e5

Output

输出找到的缺失的数字

Sample Input Copy

5
5 3 1 4

Sample Output Copy

2

Source/Category

admin