![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
ACM
文章平均质量分 76
ACM
树上の咸鱼
这个作者很懒,什么都没留下…
展开
-
A - FatMouse' Trade
Submit Status Practice HDU 1009DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.The warehouse has N ro...原创 2018-08-18 23:08:34 · 263 阅读 · 0 评论 -
A - Let the Balloon Rise
DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, ...原创 2018-08-16 15:45:51 · 132 阅读 · 0 评论 -
E - 最短的名字
在一个奇怪的村子中,很多人的名字都很长,比如aaaaa, bbb and abababab。名字这么长,叫全名显然起来很不方便。所以村民之间一般只叫名字的前缀。比如叫'aaaaa'的时候可以只叫'aaa',因为没有第二个人名字的前三个字母是'aaa'。不过你不能叫'a',因为有两个人的名字都以'a'开头。村里的人都很聪明,他们总是用最短的称呼叫人。输入保证村里不会有一个人的名字是另外一个人名字原创 2017-08-30 23:08:15 · 185 阅读 · 0 评论 -
B - 机器人的指令
数轴原点有一个机器人。该机器人将执行一系列指令,你的任务是预测所有指令执行完毕之后它的位置。·LEFT:往左移动一个单位·RIGHT: 往右移动一个单位·SAME AS i: 和第i 条执行相同的动作。输入保证i 是一个正整数,且不超过之前执行指令数Input输入第一行为数据组数T (TOutput对于每组数据,输出机器人的最终位置。每处理完一组数据,机器人应复原创 2017-08-30 23:03:55 · 342 阅读 · 0 评论 -
A - 三家人
有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如果这么想你就上当了!正确答案是60 元。如果没想通的话再想想吧。下面回答一个一般性的问题:假定A 太太工作了x 天,B 太原创 2017-08-30 22:59:00 · 432 阅读 · 0 评论 -
D - Elevator
DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. I...原创 2018-08-16 16:09:52 · 232 阅读 · 0 评论 -
超大型LED显示屏
Input输入包含不超过100组数据。每组数据第一行为"START hh:mm:ss",表示比赛开始时刻为hh:mm:ss。最后一行为"END hh:mm:ss",即比赛结束时刻。二者之间至少会有一个SCORE信息,格式为"SCORE hh:mm:ss team score",其中team要么是"home"(主场)要么是"guest"(客场), score表示得分,为1,2或者3。这些信息保证原创 2017-08-30 23:22:36 · 275 阅读 · 0 评论 -
残缺的棋盘
Input输入包含不超过10000 组数据。每组数据包含6个整数r1, c1, r2, c2, r3, c3 (1Output对于每组数据,输出测试点编号和最少步数。Sample Input1 1 8 7 5 61 1 3 3 2 2Sample OutputCase 1: 7Case 2: 3这题其实就是模板题,类似于迷宫的原创 2017-08-30 23:18:55 · 161 阅读 · 0 评论 -
酷酷的单词
输入一些仅由小写字母组成的单词。你的任务是统计有多少个单词是“酷”的,即每种字母出现的次数都不同。比如ada是酷的,因为a出现2次,d出现1次,而1和2不同。再比如,banana也是酷的,因为a出现3次,n出现2次,b出现1次。但是,bbacccd不是酷的,因为a和d出现的次数相同(均为1次)。Input输入包含不超过30组数据。每组数据第一行为单词个数n (1Ou原创 2017-08-30 23:13:57 · 1531 阅读 · 0 评论 -
I - RunningMan
I - RunningMan 题目大意:一个跑男队和另外一个队进行比赛,比赛三个回合,只要跑男队人数多于或者等于另外一个队就获得一个回合的胜利,赢下两个回合或者三个回合就获得最终的胜利AC代码#include #include #include #include#include #include #include #include usi原创 2017-08-21 16:59:42 · 215 阅读 · 0 评论 -
A - Super Mobile Charger
While HIT ACM Group finished their contest in Shanghai and is heading back Harbin, their train was delayed due to the heavy snow. Their mobile phones are all running out of battery very quick. Luckily原创 2017-08-21 16:39:21 · 271 阅读 · 0 评论 -
B - Common Tangents
B - Common Tangents 题目大意:求两个圆之间有多少条切线有六种情况,直接一一列举就行第一种:两个圆重合——无限个切线第二种:两个圆相离——四个第三种:两元相交——两个第四种:两元相切(外切)#include #include #include #include#include #include #include原创 2017-08-21 16:52:25 · 186 阅读 · 0 评论