【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> using namespace std; int n,half[101],x,p; int main(){ cin>>n; for(int i=1;i<=n;++i){ cin>>x; x+=50; half[x]++; if(half[x]>n/2)p=x; } if(p>0)cout<<p-50; else cout<<"no"; return 0; }//ok
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:387660 本月:27 上月:1061 今日:6 昨日:3 当前在线:1人