- 博客(4)
- 收藏
- 关注
原创 ZOJ1011
#include <stdio.h>#include <stdlib.h>#include <memory.h>#include <string.h>int n, m, k, lev;//树的层数 int transition[155][155];//存放表格中数据 char tree[11][2222]; int dfs...
2018-06-25 16:36:37 430
原创 zoj1088
//约瑟夫环问题,其实就是循环链表,考察节点的删除操作#include <stdio.h>#include <stdlib.h> int n; struct node { int num; struct node * next; }; void init(node ** p)//必须要双星,node*表类型(即...
2018-06-25 16:29:39 314
原创 ZOJ1203
/*prim算法*/ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int n; bool visit[111]; double low[111]; double distance[111][111]; ...
2018-06-25 15:56:18 253
原创 ZOJ1013
#include <iostream>#include <cstring>#define CAVARAN_MAX 101#define EACH_EQUIPMENT_MAX 501#define MIN2(x, y) (x < y ? x : y)#define MIN3(x, y, z) ((x < y ? x : y) < z ? (x &...
2018-06-22 16:48:35 308
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人