上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页
摘要: 模板: 示意图: 1.Ultra-QuickSort 大佬代码: //树状数组 #include<iostream> #include<string.h> #include<algorithm> using namespace std; #define MAX 500010 int c[MAX]; 阅读全文
posted @ 2018-02-18 22:50 TQCAI 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.最大数 代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue 阅读全文
posted @ 2018-02-18 21:46 TQCAI 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 王道P38T20 主代码: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct DNode{ int data,freq; struct DNode* next=NULL; struct DN 阅读全文
posted @ 2018-02-18 13:09 TQCAI 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 王道P38T19 代码: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LNode{ int data; struct LNode* next=NULL; LNode(int x=0){ 阅读全文
posted @ 2018-02-18 00:07 TQCAI 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 王道P39T17 主代码: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct DNode{ int data; struct DNode* next=NULL; struct DNode* 阅读全文
posted @ 2018-02-17 19:12 TQCAI 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 王道P38T16 代码: 主代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LNode{ int data; struct LNode* next=NULL; LNode(int x=0){ 阅读全文
posted @ 2018-02-17 18:24 TQCAI 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: 王道P38T14 主代码: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LNode{ int data; struct LNode* next=NULL; LNode(){ } LNo 阅读全文
posted @ 2018-02-17 17:48 TQCAI 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 王道P38T13 主代码: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LNode{ int data; struct LNode* next=NULL; LNode(){ } LNo 阅读全文
posted @ 2018-02-17 16:26 TQCAI 阅读(1522) 评论(0) 推荐(0) 编辑
摘要: 王道P37T12 主代码: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LNode{ int data; struct LNode* next=NULL; LNode(){ } LNo 阅读全文
posted @ 2018-02-17 15:53 TQCAI 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1.维护区间最大最小值模板(以维护最小值为例) 2.维护区间和的模板 数据结构: 建树: 单点修改: 单点查询: 区间修改: 区间查询: 3.模板编写练习: 阅读全文
posted @ 2018-02-15 15:21 TQCAI 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页