题解
Lesords
这个作者很懒,什么都没留下…
展开
-
POJ 1027 The Same Game(题解+代码)
题目传送门:http://poj.org/problem?id=1027题目:The Same GameDescriptionThe game named “Same” is a single person game played on a 10 \Theta 15 board. Each square contains a ball colored red ®, green (G), or blue (B). Two balls belong to the same cluster if they原创 2020-07-22 16:02:07 · 901 阅读 · 0 评论 -
POJ 1797 Heavy Transportation(题解+代码)
题目传送门:http://poj.org/problem?id=1797题目:Heavy TransportationDescriptionBackgroundHugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from原创 2020-07-21 16:39:05 · 336 阅读 · 0 评论 -
杭电 1062 Text Reverse(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1062题目:Text ReverseProblem DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you sh...原创 2019-11-14 16:15:51 · 403 阅读 · 0 评论 -
杭电 2054 A == B ?(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=2054题目:A == B ?Problem DescriptionGive you two numbers A and B, if A is equal to B, you should print “YES”, or print “NO”.Inputeach test case cont...原创 2019-10-18 12:24:44 · 411 阅读 · 0 评论 -
第九届福建省大学生程序设计竞赛 FZU 2297 Number theory(题解+代码)
题目传送门:http://acm.fzu.edu.cn/problem.php?pid=2297题目:Number theoryProblem DescriptionGiven a integers x = 1, you have to apply Q (Q ≤ 100000) operations: Multiply, Divide.InputFirst line of the in...原创 2019-10-06 20:42:13 · 445 阅读 · 0 评论 -
杭电 2072 单词数(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=2072题目:单词数Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。Input有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母...原创 2019-09-27 19:58:18 · 1295 阅读 · 0 评论 -
杭电 1254 推箱子(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1254题目:推箱子Problem Description推箱子是一个很经典的游戏.今天我们来玩一个简单版本.在一个M*N的房间里有一个箱子和一个搬运工,搬运工的工作就是把箱子推到指定的位置,注意,搬运工只能推箱子而不能拉箱子,因此如果箱子被推到一个角上(如图2)那么箱子就不能再被移动了,如果箱...原创 2019-09-25 08:26:36 · 974 阅读 · 0 评论 -
第九届福建省大学生程序设计竞赛 FZU 2300 IoU(题解+代码)
题目传送门:http://acm.fzu.edu.cn/problem.php?pid=2300题目:IoUProblem DescriptionXzz need to calculate Intersection over Union(IoU) of two rectangles, can you help him?rectangle (x, y, w, h) means a rect...原创 2019-09-21 13:19:54 · 491 阅读 · 0 评论 -
第八届福建省大学生程序设计竞赛 FZU 2275 Game(题解+代码)
题目传送门:http://acm.fzu.edu.cn/problem.php?pid=2275题目:GameProblem DescriptionAlice and Bob is playing a game.Each of them has a number. Alice’s number is A, and Bob’s number is B.Each turn, one pla...原创 2019-09-21 11:31:46 · 256 阅读 · 0 评论 -
第八届福建省大学生程序设计竞赛 FZU 2272 Frog(题解+代码)
题目传送门:http://acm.fzu.edu.cn/problem.php?pid=2272题目:FrogProblem DescriptionTherearex frogs and y chicken in a garden. Kim found there are n heads and m legs in the garden. Please tell Kim how many ...原创 2019-09-21 10:59:54 · 553 阅读 · 0 评论 -
杭电 4557 非诚勿扰(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=4557题目:非诚勿扰Problem Description 作为2013年699万应届毕业生中的一员,由于宏观经济的不景气,小明在毕业当天就华丽丽地失业了! 经历了千难万苦的求职过程,小明特别能理解毕业生的就业之难,所以,他现在准备创建一家专门针对IT人才的求职中介公司——非诚勿扰人力资...原创 2019-09-17 21:31:37 · 488 阅读 · 1 评论 -
杭电 1222 Wolf and Rabbit(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1222题意:Wolf and RabbitProblem DescriptionThere is a hill with n holes around. The holes are signed from 0 to n-1.A rabbit must hide in one of the ...原创 2019-09-17 17:01:26 · 508 阅读 · 1 评论 -
杭电 2818 Building Block(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=2818题目:Building BlockProblem DescriptionJohn are playing with blocks. There are N blocks (1 <= N <= 30000) numbered 1...N。Initially, there are...原创 2019-09-16 22:15:40 · 311 阅读 · 2 评论 -
杭电 1072 Nightmare(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1072题目:NightmareProblem DescriptionIgnatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has a...原创 2019-09-15 22:42:49 · 646 阅读 · 3 评论 -
杭电 1240 Asteroids!(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1240题目:Asteroids!Problem DescriptionYou’re in space.You want to get home.There are asteroids.You don’t want to hit them.InputInput to this prob...原创 2019-09-15 21:34:17 · 645 阅读 · 3 评论 -
杭电 1253 胜利大逃亡(题解+代码)
题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1253题目:胜利大逃亡Problem DescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个ABC的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-...原创 2019-09-15 19:56:13 · 452 阅读 · 1 评论 -
杭电 1896 Stones(题解+代码)
杭电 1896 Stones题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1896题目:StonesProblem DescriptionBecause of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk b...原创 2019-09-15 17:02:15 · 539 阅读 · 1 评论