ZOJ 2104 Let the Balloon Rise
来源:互联网 发布:怪兽仙境3破解版java 编辑:程序博客网 时间:2024/05/17 07:10
继续水题。
#include <iostream>#include <cstdio>#include <map>#include <string>using namespace std;map<string, int> cnt;int n;char buf[100];int main(){ while(scanf("%d", &n) && n){ cnt.clear(); int maxv = 0; string ans = ""; while(n-- ){ scanf("%s", buf); cnt[buf]++; if(cnt[buf] > maxv){ maxv = cnt[buf]; ans = buf; } } printf("%s\n", ans.c_str()); } return 0;}
- zoj 2104 Let the Balloon Rise
- ZOJ 2104 Let the Balloon Rise
- ZOJ 2104 Let the Balloon Rise
- ZOJ 2104 Let the Balloon Rise
- zoj 2104 Let the Balloon Rise
- ZOJ 2104Let the Balloon Rise
- ZOJ Problem Set - 2104 Let the Balloon Rise
- ZOj 2104——Let the Balloon Rise
- ZOJ Problem Set - 2104 Let the Balloon Rise
- zoj 2104.Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- Let the Balloon Rise
- oracle 导入
- 编译器如何C++的函数重载
- ioctl问题
- 过程改进建设中的常见奖励措施
- 前端开发-有序列表无效
- ZOJ 2104 Let the Balloon Rise
- 执手昨日今天 5.28
- Python Exercise #12
- poj 1258 Agri-Nets
- 函数的开始和结束标志
- 黑马程序员_毕向东JAVA基础_集合(2)Collection&&List&&Set&&泛型
- JSTL JSP标准标签库(三)
- 关于java.util.jar.Manifest类
- 使用fcntl锁定文件,并且测试