- 博客(2)
- 收藏
- 关注
转载 大数(高精度)模版
#include #include #include #include using namespace std; /* * 完全大数模板 * 输入cin>>a * 输出a.print(); * 注意这个输入不能自动去掉前导0的,可以先读入到char数组,去掉前导0,再用构造函数。 */ #define MAXN 9999#define MAXSIZE 1010 //输
2016-04-17 11:51:05
338
原创 并查集
#define MAX 10001 //结点数int father[MAX];void init()//初始化{for (int i = 1; i <= MAX; i++)father[i] = i;}int find(int a) {//查找并压缩 if (father[a] != a)father[a] = find(father[a]); return father[a];}v
2016-03-25 20:13:13
208
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人