Search a number
Time Limit: 1 sec
The Problem
You are given a list of numbers. Your job is to find the position of a specific number from the list; if the number is not found in the given list then you have to print not found.
The Input
Input starts with an integer T, denoting the number of test cases. For each test case there is a line of integers. First integer N of the line denotes the length of list followed by N positive integers. Last integer of line denotes the number K where you have to find the position of K from the N numbers. All integers in the input file will be less than or equal to 1000.
The Output
For each test case you have to print “Case T: P” (except quotes) where T is the test case and P is the position of the K form N integers. If K is not found in the given N integers then you have to print “Case T: Not Found” in a line.
Sample Input
3
5 8 5 2 10 9 10
3 50 20 60 20
4 1 2 2 4 5
Sample Output
Case 1: 4
Case 2: 2
Case 3: Not Found
Problem Setter: Hasnayn Ahmed Shakil