hdu 1029 Ignatius and the Princess IV
来源:互联网 发布:歌未竟 东方白 知乎 编辑:程序博客网 时间:2024/06/06 00:57
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1029
简单题,stl水之。。
#include<algorithm>#include<cstdio>#include<map>using std::map;map<int,int> rec;int main() { int n, v, res, cnt; while (~scanf("%d", &n)) { res = cnt = 0; for (int i = 0; i < n; i++) { scanf("%d", &v); rec[v]++; if (rec[v] > cnt) cnt = rec[v], res = v; } printf("%d\n", res); rec.clear(); } 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
- Ajax,jQuery事例
- 3个设计数据库的设计步骤
- poj1700Crossing River
- 基于Hough 变换的直线检测(Matlab实现)
- 面试题:在Java中如何跳出当前的多重嵌套循环?
- hdu 1029 Ignatius and the Princess IV
- Hough Transform 霍夫变换检测直线
- 关于Array.Sort<T> (T[], Comparison<T>)的一些小记录
- --专访雷果国: 从1.5K到18K 一个程序员的5年成长之路--
- 用Python和Pygame写游戏-从入门到精通(4)
- 面试题:short s1=1;s1=s1+1;有什么错?short s2=1;s2+=1;有什么错?
- 正则表达式
- 用Python和Pygame写游戏-从入门到精通(5)
- android蓝牙框架bluedroid之sbc编码