16 多校 8 Ball (贪心排序)很巧妙的思路啊~
摘要:ZZX has a sequence of boxes numbered 1,2,...,n1,2,...,n. Each box can contain at most one ball. You are given the initial configuration of the balls.
阅读全文
POJ 1065 Wooden Sticks (贪心)
摘要:There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine
阅读全文
HDU2124 Repair the Wall(贪心)
摘要:Problem Description Long time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. The only thing that troubled
阅读全文
HDU1789Doing Homework again(贪心)
摘要:Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline
阅读全文
HDU2037今年暑假不AC(贪心)
摘要:Problem Description “今年暑假不AC?”“是的。”“那你干什么呢?”“看世界杯呀,笨蛋!”“@#$%^&*%...”确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些
阅读全文
HDU1009FatMouse' Trade(贪心)
摘要:Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean
阅读全文