2016年9月12日

manacher最长回文序列c++

摘要: #include <iostream> #include<string> #include<cstring> using namespace std; char * pre(char *str) { int length = strlen(str); char *prestr = new char[ 阅读全文

posted @ 2016-09-12 21:24 邗影 阅读(304) 评论(0) 推荐(0) 编辑

求任意两个数间的质数个数

摘要: 输入 数字个数n 最小从4开始,输出n 个升序排列的数字 输出任意两个数之间质数个数的总和 3 4 6 12 out: 6 不知道哪里错了,求解: #include <iostream>#include<string>#include<fstream>#include<math.h> using n 阅读全文

posted @ 2016-09-12 17:03 邗影 阅读(934) 评论(0) 推荐(0) 编辑

导航