我实在是太懒了,水过吧
#include<iostream> #include<algorithm> using namespace std; const int MAXN = 1E4; int a[MAXN+1]; int main() { int N; cin>>N; for(int i = 0;i<N;i++) cin>>a[i]; sort(a,a+N); cout<<a[N/2]<<endl; }
标签:blog 技术分享 style space AC div iostream mes png
我实在是太懒了,水过吧
#include<iostream> #include<algorithm> using namespace std; const int MAXN = 1E4; int a[MAXN+1]; int main() { int N; cin>>N; for(int i = 0;i<N;i++) cin>>a[i]; sort(a,a+N); cout<<a[N/2]<<endl; }
标签:blog 技术分享 style space AC div iostream mes png
原文地址:https://www.cnblogs.com/ZZUGPY/p/8476308.html