Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
32M
Author:
Problem type
Allowed languages
Python
Given an array nums containing distinct integers in the range , output the only integer in the range that is missing from the array. Note that if is the missing integer, then all integers in the range will be present in the array, and the output should be .
Input Specification
The first line of the input gives the number of test cases, , and then test cases follow.
For each test case, it will consist of one lines contains integers separated by spaces.
Constraints
Output Specification
For each test case, output one line containing Case #x: y
, where is the case number(starting from 1), and is the missing number of the given input array.
Sample Input
2
3 0 1
0 1
Sample Output
Case #1: 2
Case #2: 2
Hint
sort
loop
if-else
Comments