摘要: 其实就是求最长回文序列的长度m,然后答案=n-m;/********************LightOJ 1033Author:Cdegree********************/#include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:1 阅读全文
posted @ 2013-10-01 20:07 degree 阅读(226) 评论(0) 推荐(0) 编辑
摘要: /********************LightOJ 1032Author:Cdegree********************/#include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000") 阅读全文
posted @ 2013-10-01 20:00 degree 阅读(211) 评论(0) 推荐(0) 编辑
摘要: /********************LightOJ 1031Author:Cdegree********************/#include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000") 阅读全文
posted @ 2013-10-01 16:00 degree 阅读(278) 评论(0) 推荐(0) 编辑
摘要: /********************Author:Cdegree********************/#include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namesp 阅读全文
posted @ 2013-10-01 15:27 degree 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 平均访问时间为sum(t)/n,期望次数为n/n1#include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos( 阅读全文
posted @ 2013-10-01 15:26 degree 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 15:04 degree 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 15:04 degree 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 15:03 degree 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 15:02 degree 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 15:01 degree 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 14:59 degree 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 14:56 degree 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 14:55 degree 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #define X first#define Y second#define sqr(x) (x)*(x)#pragma comment(linker,"/STACK:102400000,102400000")using namespace std;const double PI = acos(-1.0);map::iterator it;ty 阅读全文
posted @ 2013-10-01 14:54 degree 阅读(145) 评论(0) 推荐(0) 编辑