随笔分类 -  C++

摘要:KMP算法说明:http://zh.wikipedia.org/wiki/%E5%85%8B%E5%8A%AA%E6%96%AF-%E8%8E%AB%E9%87%8C%E6%96%AF-%E6%99%AE%E6%8B%89%E7%89%B9%E7%AE%97%E6%B3%95#includeusin... 阅读全文
posted @ 2015-04-25 12:56 夏方方 阅读(295) 评论(0) 推荐(0)
摘要:ProblemIt’s opening night at the opera, and your friend is the prima donna (the lead female singer). You will not be in the audience, but you want to ... 阅读全文
posted @ 2015-04-13 23:37 夏方方 阅读(263) 评论(0) 推荐(0)
摘要:ProblemIt’s opening night at the opera, and your friend is the prima donna (the lead female singer). You will not be in the audience, but you want to ... 阅读全文
posted @ 2015-04-13 22:17 夏方方 阅读(349) 评论(0) 推荐(0)
摘要:看《编程之美》的第一题就很有意思:写一个程序,让用户来决定Windows任务管理器的CPU占用率。可以实现下面三种情况:1. CPU的占用率固定在50%,为一条直线;2. CPU的占用率为条直线,但是具体占用率由命令行参数觉得(1~100);3.CPU的占用率状态是一个正弦曲线问题一我开始是按照书上... 阅读全文
posted @ 2015-04-08 18:22 夏方方 阅读(1765) 评论(0) 推荐(2)
摘要:Google Code Jam Qualification Round Africa 2010 的第一题,很简单。ProblemYou receive a creditCat a local store and would like to buy two items. You first walk ... 阅读全文
posted @ 2015-03-29 22:31 夏方方 阅读(384) 评论(0) 推荐(0)
摘要:Google Code Jam 2008 资格赛的第一题:Saving the Universe。问题描述如下:ProblemThe urban legend goes that if you go to the Google homepage and search for "Google", th... 阅读全文
posted @ 2015-03-25 22:05 夏方方 阅读(440) 评论(0) 推荐(0)