摘要: /* 这题10^8的暴力可以出答案 但是 慢..... 有个小小的bug 出题人卡int 却没注意short 用short可以不用hash 直接搞 49428K 313MS */ #include #include #include #define base 12500000 using namespace std; int a1,a2,a3,a4,a5,x1,x2,x3,x4,x5,ans; ... 阅读全文
posted @ 2016-08-12 21:28 一入OI深似海 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 开始按hash做的 交上去就wa 但是和标称拍了半天也没有不一样的 可能是生成的数据太水了吧... #include #include #include #define maxn 100010 #define mod 10000007 #define ll long long using namespace std; ll ha; int n,a[maxn][6],base,J[7]; bool... 阅读全文
posted @ 2016-08-12 16:26 一入OI深似海 阅读(640) 评论(0) 推荐(0) 编辑