题目描述
It was exam time in pesce, mandya and Rubal was feeling hungry.However being late night and exam time he decided to look for snacks in every room.However because of his bad luck he missed the room which actually had snacks.Help him to find the room number which he missed.
The rooms in the hostel are in the range 1 to N.
Input
First line of input contains T , i.e. number of test cases.Each of next T lines Contains an integer N i.e. total no of rooms.Next line contains the room number he visited denoted by an array A.
Output
Output the missing number in an array.
Constraints
Should contain all the constraints on the input data that you may have. Format it like:
1 ≤ T ≤ 50
1 ≤ N ≤ 500000
Example
Input:
2
9
5 4 2 8 3 1 7 9
5
1 5 2 4
Output:
6
3
Explanation
Example case 1. Since 6 is an integer which is missing in a sequence.
输入格式
见题面
输出格式
见题面