摘要:"Problem 2: Even Fibonacci numbers" Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and ...
阅读全文
随笔分类 - acm
涉及算法、数据结构
摘要:"Problem 2: Even Fibonacci numbers" Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and ...
阅读全文
摘要:http://hihocoder.com/contest/hiho2/problem/1与之前做的有点像:http://blog.csdn.net/u011644423/article/details/37833905稍微改下,注意每次在建立Trie树时同时进行统计 1 #include ...
阅读全文
摘要:一年没刷题了。。。最近想了很多,大三了,即将毕业,后面也会各种笔试,还是把算法题补上,少看点其他方面的书。。。去年接触了hihoCoder这个平台,循序渐进的锻炼,非常不错,那先从第一周做起把。。最长回文子串的题以前做过,当初是每个点都往两边找,但是类似aaaaa这样的数据就过不了,其实只要每次找当...
阅读全文
|