上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: #include #include #include #include #include #define NOT_FOUND -1 using namespace std; const int maxn=10007; int n, k, a[maxn]; int Binary_Search() { int left=1; int right=n; while(left ... 阅读全文
posted @ 2017-03-31 19:56 爱记录一切美好的微笑 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; const int maxn=10007; int n, k, a[maxn]; int Order_Search() { int i; for(i=n; i>0&&a[i]!=k; i--); return i; } int main... 阅读全文
posted @ 2017-03-31 19:40 爱记录一切美好的微笑 阅读(91) 评论(0) 推荐(0) 编辑
摘要: http://acm.nyist.net/JudgeOnline/problem.php?pid=35 阅读全文
posted @ 2017-03-31 17:32 爱记录一切美好的微笑 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1237 阅读全文
posted @ 2017-03-31 17:31 爱记录一切美好的微笑 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef int ElemType; enum Status { OK = 1, NOT_FOUND = 2, ERROR = 3 }; struct LinkListNode { LinkListNode():pre(NULL), next(NULL) {} ElemType data;... 阅读全文
posted @ 2017-03-31 17:30 爱记录一切美好的微笑 阅读(153) 评论(0) 推荐(0) 编辑
摘要: https://www.patest.cn/contests/gplt/L1-006 阅读全文
posted @ 2017-03-19 16:16 爱记录一切美好的微笑 阅读(324) 评论(0) 推荐(0) 编辑
摘要: #include #include #define MAXSIZE 110 #define ok 1 #define error 0 typedef int SElemType; typedef int Status; ///顺序栈类型的定义 typedef struct { SElemType data[MAXSIZE]; int top; }SeqStack; ///顺... 阅读全文
posted @ 2016-10-23 17:30 爱记录一切美好的微笑 阅读(367) 评论(0) 推荐(0) 编辑
摘要: ///用26个字母来实现简单的单链表的基本操作#include #include #define ok 1 #define error 0 #define MAXSIZE 100 typedef int ElemType; typedef int Status; typedef struct node { ElemType data; struct node *next; } ... 阅读全文
posted @ 2016-10-04 17:17 爱记录一切美好的微笑 阅读(289) 评论(0) 推荐(0) 编辑
摘要: #include #define error 0 #define ok 1 #define true 1 #define false 0 #define maxn 100 typedef int Status; typedef int ElemType; typedef struct { ElemType elem[maxn]; int length; } SqList; S... 阅读全文
posted @ 2016-09-12 20:29 爱记录一切美好的微笑 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=3126 阅读全文
posted @ 2016-08-24 16:28 爱记录一切美好的微笑 阅读(86) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页