2017年1月16日

容斥 HDU 2204

摘要: #include #include #include #include using namespace std; vectors; int z[]={2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67}; typedef __int64 LL; void Init() { for(int i=... 阅读全文

posted @ 2017-01-16 14:10 HelloWorld!--By-MJY 阅读(101) 评论(0) 推荐(0) 编辑

最小生成树 prim算法

摘要: #include<stdio.h> #include<string.h> #define inf 100000000 #define MAXN 100010 struct edge { int to,w,next; }x[MAXN]; int head[MAXN]; int cnt; void ad 阅读全文

posted @ 2017-01-16 09:29 HelloWorld!--By-MJY 阅读(127) 评论(0) 推荐(0) 编辑

导航