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.
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 the missing number in an array.
Should contain all the constraints on the input data that you may have. Format it like:
- 1 ≤ T ≤ 50
- 1 ≤ N ≤ 500000
Input: 2 9 5 4 2 8 3 1 7 9 5 1 5 2 4 Output: 6 3
Example case 1. Since 6 is an integer which is missing in a sequence.
|Time Limit:||0.2 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, PRLG, PIKE, JS, ERL, TCL, PERL6, TEXT, FS|
Fetching successful submissions