该文被密码保护。 阅读全文
posted @ 2016-12-11 18:06 不忧尘世不忧心 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include #define STACKSIZE 110 #define TRUE 1 #define FALSE 0 typedef int ElemType; typedef int Status; typedef struct { ElemType data[STACKSIZE]; int top; int rear; } SeqQueue; Sta... 阅读全文
posted @ 2016-10-20 20:14 不忧尘世不忧心 阅读(357) 评论(0) 推荐(0) 编辑
摘要: #include #include #define MAXSIZE 110 #define TRUE 1 #define FALSE 0 typedef char ElemType; typedef int Status; typedef struct { ElemType data[MAXSIZE]; int top; }SeqStack; void InitStack(S... 阅读全文
posted @ 2016-10-20 19:35 不忧尘世不忧心 阅读(217) 评论(0) 推荐(0) 编辑
摘要: #include #define STACKSIZE 110 #define OK 1 #define TRUE 1 #define FALSE 0 int flag; typedef int ElemType; typedef int Status; typedef struct { ElemType data[STACKSIZE]; int top; }SeqStack; ... 阅读全文
posted @ 2016-10-20 11:12 不忧尘世不忧心 阅读(378) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef struct Polynode *Polynomial; struct Polynode { int coef; int expon; Polynomial link; }; void PrintPoly(Polynomial P) { int flag = 0; if(!P) ... 阅读全文
posted @ 2016-10-10 19:50 不忧尘世不忧心 阅读(286) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/709/B 题意:给出一条横向坐标轴,给出Vasya所在的坐标位置及其另外n个坐标。Vasya想要至少访问n-1个位置,问最短所需要走的距离为多少? #include <stdio.h> #include <stdli 阅读全文
posted @ 2016-10-10 17:49 不忧尘世不忧心 阅读(184) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1248 阅读全文
posted @ 2016-09-27 20:40 不忧尘世不忧心 阅读(232) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef char Elemtype; typedef struct Lnode { Elemtype data; struct Lnode *next; }Lnode, *Linklist; void CreateList_head(Linklist *L1) { Lnode *p; int i; *L1=(L... 阅读全文
posted @ 2016-09-27 20:26 不忧尘世不忧心 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: /// 没有新建头结点,利用其中L1或L2的头结点 #include <stdio.h> #include <stdlib.h> typedef int Elemtype; typedef struct Lnode { Elemtype data; struct Lnode *next; }Lnod 阅读全文
posted @ 2016-09-27 20:23 不忧尘世不忧心 阅读(349) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1711 首次接触KMP,自己都不是特别理解。在网上百度看了好几个帖子之后,对KMP也有了初步的理解。 阅读全文
posted @ 2016-09-25 10:40 不忧尘世不忧心 阅读(213) 评论(0) 推荐(0) 编辑