HDU 1800 Flying to the Mars
来源:互联网 发布:暗黑2优化的高清补丁 编辑:程序博客网 时间:2024/05/13 00:55
//HDU 1800 Flying to the Mars//http://acm.hdu.edu.cn/showproblem.php?pid=1800/*题意:飞去火星o(╯□╰)oPPF帝国需要殖民火星,决定用magic broomsticks飞去火星。。。(这什么设定啊)这需要学习。。。每位士兵有个能力值,能力值高得可以教导能力值低的并乘坐同一magic broomsticks,为了节省资金,需要最少多少把magic broomsticks题解:看起来很复杂,但需要注意的只有一种情况,能力值相等时,就不能同坐一把magic broomsticks所以统计同等能力值的同等度,最大的一个同等度就系所需数author liweijie*/#include <iostream>#include <cstdio>#include <map>#include <cstring>using namespace std;map<__int64,int> mp;string re;__int64 s;int n;int j;int maxi = 0;int tmp;int main(){ while(scanf("%d",&n)!=EOF) { maxi = 0; mp.clear(); for (int i=0;i<n;i++) { scanf("%I64d",&s); tmp = ++mp[s]; if (tmp>maxi) maxi = tmp; } printf("%d\n",maxi); } return 0;}
- Flying to the Mars (hash) 1800 hdu
- hdu 1800 Flying to the Mars
- Hdu-1800 Flying to the Mars
- hdu 1800 Flying to the Mars
- hdu 1800 Flying to the Mars
- HDU-1800-Flying to the Mars
- hdu 1800 Flying to the Mars
- hdu 1800 Flying to the Mars
- hdu 1800 Flying to the Mars
- HDU 1800 Flying to the Mars
- HDU 1800 Flying to the Mars STL
- HDU -1800 Flying to the Mars
- hdu - 1800 - Flying to the Mars
- HDU 1800 Flying to the Mars(trie)
- HDU--1800 -- Flying to the Mars
- HDU-1800 - Flying to the Mars
- hdu 1800 Flying to the Mars【水水】
- HDU 1800 Flying to the Mars
- hdu 4587 割点 2013 ACM-ICPC南京赛区全国邀请赛
- Hdu2112_HDU Today_(dijskual最短路)
- servfox解析
- HDU 2178 猜数字(水题,数学题)
- 在eclipse中修改java和jsp字体
- HDU 1800 Flying to the Mars
- java中instanceof的用法
- Quartz 2D编程指南(2) - 图形上下文
- pci设备的初始化
- iOS面试题汇总(一)
- 小for的Cocos2d-x学习笔记与感悟1之环境搭建
- uva 1339 Ancient Cipher(字符串处理)
- getResource()和getResourceAsStream以及路径问题
- 多校联合第8场1003Mine