Problem Description "OK, you are not too bad, em... But you can never pass the next test." feng5166 says.
Input The input contains several test cases. Each test case contains two lines. The first line consists of an odd integer N(1<=N<=999999) which indicate the number of the integers feng5166 will tell our hero. The second line contains the N integers. The input is terminated by the end of file.
Output For each test case, you have to output only one line which contains the special number you have found.
Sample Input 5 1 3 2 3 3 11 1 1 1 1 1 5 5 5 5 5 5 7 1 1 1 1 1 1 1
Sample Output 3 5 1
有以下做法:
1、/*刚好这个次数比较特殊,为数列的中间
2、 /*每输入一个数,已此数为脚码,+1;最终进行比较,输出最大的数组,再输出其脚码*/ #include<cstdio> } |
Ignatius and the Princess IV
最新推荐文章于 2020-03-23 18:11:10 发布