2017年7月13日

多校 2013 4

摘要: A 区间DP #include<stdio.h> #include<string.h> #include<algorithm> #include<string> #include<iostream> using namespace std; #define MAXN 1009 #define inf 阅读全文

posted @ 2017-07-13 19:47 HelloWorld!--By-MJY 阅读(144) 评论(0) 推荐(0) 编辑

多校 2013 3

摘要: B hash 把字符串看成数字插进去 #include<stdio.h> #include<string.h> using namespace std; #define SEED 13331 #define MAXN 2007 #define HASH 10007 int head[HASH]; i 阅读全文

posted @ 2017-07-13 19:39 HelloWorld!--By-MJY 阅读(124) 评论(0) 推荐(0) 编辑

多校2013 2

摘要: A lcm(A,B)显然是循环节 然而仅仅这样不行 还有一点规律 #include <iostream> #include <cstdio> #include <cmath> #include <map> #include <algorithm> #include <cstring> #includ 阅读全文

posted @ 2017-07-13 19:31 HelloWorld!--By-MJY 阅读(121) 评论(0) 推荐(0) 编辑

导航