hdu-1029 Ignatius and the Princess IV
来源:互联网 发布:伯恩数据统计表格模板 编辑:程序博客网 时间:2024/06/06 08:51
#include<stdio.h>int a[1000010]={0};int main(){ int n,m,i,k; while(~scanf("%d",&n)) { for(i=1;i<=n;i++) { scanf("%d",&m); a[m]++; if(a[m]>=(n+1)/2) k=m; } printf("%d\n",k); } return 0;} //方法比我的好,我的提交的时候超时了,看到这个方法时眼前一亮,还是自己知道的少啊
0 0
- hdu 1029 Ignatius and the Princess IV
- HDU 1029 Ignatius and the Princess IV
- HDU 1029 Ignatius and the Princess IV
- HDU 1029 Ignatius and the Princess IV
- hdu 1029 Ignatius and the Princess IV
- hdu 1029 Ignatius and the Princess IV
- hdu 1029 Ignatius and the Princess IV
- hdu 1029 Ignatius and the Princess IV
- Ignatius and the Princess IV hdu 1029
- hdu 1029 Ignatius and the Princess IV
- HDU 1029 Ignatius and the Princess IV
- HDU 1029 Ignatius and the Princess IV
- hdu 1029 Ignatius and the Princess IV
- hdu 1029 Ignatius and the Princess IV
- HDU 1029 Ignatius and the Princess IV
- HDU-1029-Ignatius and the Princess IV
- HDU--1029--Ignatius and the Princess IV
- hdu - 1029 -Ignatius and the Princess IV
- 转: 互联网下,各种高性能后端系统,技术解决方案
- hdu-1019 Least Common Multiple
- layoutSubviews总结
- Mac与Phy组成原理的简单分析
- 关于android性能,内存优化
- hdu-1029 Ignatius and the Princess IV
- c#securityexception不允许所请求的注册表访问权
- OSPF实验一
- js代码判断浏览器类型
- hdu-1037 Keep on Truckin'
- c++实现bp神经网络分类
- iOS多语言本地化(国际化)设置
- Xcode7.1 App上线提交不了问题汇总
- 测试庖丁解牛分词工具