摘要:
以每个字符为中心,分两种情况向两边扩展。 manacher算法参见http://www.cnblogs.com/houkai/p/3371807.html AC代码: #include <string> #include <cstdio> #include <iostream> using name 阅读全文
摘要:
最后一点用string 和cin会超时 将学生名字转换成int用scanf就可以了 AC代码: #include <vector> #include <string> #include <map> #include <set> #include <cstdio> #include <iostream 阅读全文
摘要:
注意:最小数为0时,要输出“0” AC代码 #include <string> #include <vector> #include <algorithm> #include <iostream> using namespace std; bool cmp(const string& a,const 阅读全文