using System; using System.Collections.Generic; using System.Linq; namespace PracticeAtCoder { class Program { static void Main(string[] args) { //中央値 string sA = Console.ReadLine(); int intN = int.Parse(sA); Boolean flg = true; if(intN % 2 == 0){ flg = true; intN = intN/2; }else{ flg = false; intN = intN/2; } string sB = Console.ReadLine(); string[] t = sB.Split(' '); int[] after = t.Select(s => int.Parse(s)).ToArray(); double bolA = 0; //ソートが必要 Array.Sort(after); if(flg){ bolA = (after[intN-1] +after[intN]); Console.WriteLine(bolA/2); }else{ Console.WriteLine(after[intN]); } } } }