hdoj1029简单题
来源:互联网 发布:金山软件股份有限公司 编辑:程序博客网 时间:2024/06/12 01:27
#include<stdio.h>int main(){ int n,num,max; while(scanf("%d",&n)!=EOF) { int times[32768]={0};//由于题目没有给数据范围,碰巧这样也能过 for(int i=1;i<=n;i++) { scanf("%d",&num); times[num]++; if(times[num]>=(n+1)/2) max=num; } printf("%d\n",max); } return 0;}
- hdoj1029简单题
- hdoj1029
- hdoj1029
- hdoj1029(基础DP)
- HDOJ1029 Ignatius and his princess IV
- HDOJ1029 Ignatius and the Princess IV
- hdoj1029 Ignatius and the Princess IV(对题目的观察?)
- 简单题
- 简单题
- 简单题
- 简单题
- 简单题
- 简单题
- 简单题
- 简单题
- 简单题
- NYOJ 821 简单求值【简单题】
- 简单比较中的题
- hdoj1032简单题
- 软件随想录(local.joelonsoftware.com/wiki)-2002年04月11日 我们的.NET策略 - Our .NET Strategy
- win8无法用ip来访问tomcat解决方法
- 递归
- linux电源管理--休眠与唤醒
- hdoj1029简单题
- 设计自己的Annotation Java
- 商院人物:任正非被称大方的小气鬼
- hdoj1014简单题
- SQL Server创建索引
- 怎样在SDK程序中使用MFC中的辅助类
- 测试Java连接Oracle是否成功
- html5 progress
- ListView的使用做了整理