The problem has been implemented in function call format. Please ignore implementation notes in problem statement. Instead, your program should implement the following function:
int Median(int N)
It should return the index of the median. Med3() can be called as described in the question. GetN() and Answer() should not be called.
A sample grader is provided. The fromat of the input file is:
First line: The answer
Second line: N
Third line: N numbers indicating the strength at each index from 1 to N