摘要:
以每个字符为中心,分两种情况向两边扩展。 manacher算法参见http://www.cnblogs.com/houkai/p/3371807.html AC代码: #include <string> #include <cstdio> #include <iostream> using name 阅读全文
posted @ 2016-03-02 16:24
aldorado
阅读(148)
评论(0)
推荐(0)
摘要:
最后一点用string 和cin会超时 将学生名字转换成int用scanf就可以了 AC代码: #include <vector> #include <string> #include <map> #include <set> #include <cstdio> #include <iostream 阅读全文
posted @ 2016-03-02 16:03
aldorado
阅读(175)
评论(0)
推荐(0)
摘要:
注意:最小数为0时,要输出“0” AC代码 #include <string> #include <vector> #include <algorithm> #include <iostream> using namespace std; bool cmp(const string& a,const 阅读全文
posted @ 2016-03-02 12:42
aldorado
阅读(123)
评论(0)
推荐(0)
浙公网安备 33010602011771号