贪心
console.log( )
吾日三省吾身:这事能不能不干、这事能不能推给别人干、这事能不能明天干。
展开
-
Far Relative’s Problem
DescriptionFamil Door wants to celebrate his birthday with his friends from Far Far Away. He has n friends and each of them can come to the party in a specific range of days of the year from ai to原创 2016-07-22 21:41:29 · 323 阅读 · 0 评论 -
今年暑假不AC<hdoj2307>
Description“今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节目,比如新闻联播(永远不要忘记关心国家大事)、非常6+7、超级原创 2016-07-19 20:53:06 · 409 阅读 · 0 评论 -
FatMouse' Trade<hdoj1009>
Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.The warehouse has N rooms. The i-th room con原创 2016-07-22 21:31:30 · 325 阅读 · 0 评论 -
Doing Homework again<hdoj1789>
Descriptionzichen 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 of handing in the homework. If zichen hands in the homew原创 2016-07-22 21:38:08 · 339 阅读 · 0 评论 -
Radar Installation
DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation,原创 2016-07-23 12:23:46 · 324 阅读 · 0 评论 -
Spongebob and Joke
DescriptionWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patrick's personal stuff and found a sequence a1, a2, ..., am原创 2016-07-22 10:12:46 · 332 阅读 · 0 评论 -
Rightmost Digit
DescriptionGiven a positive integer N, you should output the most right digit of N^N. InputThe input contains several test cases. The first line of the input is a single integer原创 2016-07-22 11:20:04 · 301 阅读 · 0 评论 -
Kefa and Company
DescriptionKefa wants to celebrate his first big salary by going to restaurant. However, he needs company.Kefa has n friends, each friend will agree to go to the restaurant if Kefa asks. Each fr原创 2016-07-22 09:21:22 · 327 阅读 · 0 评论 -
Repair the Wall
DescriptionLong time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. The only thing that troubled her is the typhoon. When the typhoon came, everyth原创 2016-07-22 21:35:52 · 287 阅读 · 0 评论 -
TIANKENG’s restaurant
Problem DescriptionTIANKENG manages a restaurant after graduating from ZCMU, and tens of thousands of customers come to have meal because of its delicious dishes. Today n groups of customers come原创 2016-07-22 21:40:17 · 250 阅读 · 0 评论 -
<hdoj1003>Max Sum
DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 1原创 2016-08-08 21:54:32 · 263 阅读 · 0 评论