摘要:
Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at time 1000. The second farmer begins at time 700 and ends at time 1200. The third farmer begins at time 1500 a 阅读全文
摘要:
Broken NecklaceYou have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for n=29: 1 2 1 2 r b b r b r r b r... 阅读全文
摘要:
貌似好久没有写博客了,之前用的是CSDN,写过十几篇,不过还是感觉那个太过于官方话,相比之下我还是喜欢博客园的界面。 现在也已经大二,ACM还是搞的一头雾水,上次去武大参加比赛也打酱油,被虐的一塌糊涂。 为了勉励自己,记录自己的学习,我决定坚持写博客,之前的CSDN我不要了,就从这里开始,就从这里开始。我的ACM征程再起起航! 我对自己做一下要求: 1.坚持写博客,就算当天没有做出题目,总要把学到的写记录下。 不要想以前那样三分钟热度,写一段时间就又懒得写了。 2.坚持每天学习,不要因为今天星期六或者今天星期天就找个借口出去放松,青春由不得我们懈怠放松陪。 3.遇到问题... 阅读全文