publicclass 学校的位置 {publicstaticvoidmain(String[] args){Scanner in =newScanner(System.in);intN= in.nextInt();int[] array =newint[N];for(int i =0; i <N; i++){
array[i]= in.nextInt();}System.out.print(getBack(array));}publicstaticintgetBack(int[] array){Arrays.sort(array);int n = array.length;if(n %2==0){int m = n /2;return array[m -1];}else{return array[n /2];}}}