#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
    int n;
    while(scanf("%d",&n)!=EOF)
    {
        int a[100000];
        for(int i=0; i<n; i++)
        scanf("%d",&a[i]);
        sort(a,a+n);
        printf("%d\n",a[n/2]);
    }
    return 0;
}

相关文章:

  • 2022-12-23
  • 2021-07-16
  • 2021-07-23
  • 2022-12-23
  • 2021-08-08
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2021-09-27
  • 2021-05-21
  • 2021-06-09
  • 2022-12-23
相关资源
相似解决方案