随笔分类 - 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...
阅读全文
摘要: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 ...
阅读全文
摘要: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 ...
阅读全文
摘要:看《编程之美》的第一题就很有意思:写一个程序,让用户来决定Windows任务管理器的CPU占用率。可以实现下面三种情况:1. CPU的占用率固定在50%,为一条直线;2. CPU的占用率为条直线,但是具体占用率由命令行参数觉得(1~100);3.CPU的占用率状态是一个正弦曲线问题一我开始是按照书上...
阅读全文
摘要:Google Code Jam Qualification Round Africa 2010 的第一题,很简单。ProblemYou receive a creditCat a local store and would like to buy two items. You first walk ...
阅读全文
摘要:Google Code Jam 2008 资格赛的第一题:Saving the Universe。问题描述如下:ProblemThe urban legend goes that if you go to the Google homepage and search for "Google", th...
阅读全文

浙公网安备 33010602011771号