串、数组、广义表
Miracle_QSH
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SDUT - 2772 数据结构实验之串一:KMP简单应用
#include <stdio.h>#include <stdlib.h>#include <string.h>char a[1000005], b[1000005];int next[1000005];void pre(char a[], int n){ int i, j; j = next[0] = -1; i = 0;...原创 2018-08-22 21:05:58 · 370 阅读 · 0 评论 -
SDUT - 3311 数据结构实验之串三:KMP应用
#include <stdio.h>#include <stdlib.h>#include <string.h>int a[10000005], b[10000005], nex[10000005];void pre(int a[], int n){ int i, j; i = 0; j = nex[0] = -1; ...原创 2018-08-22 21:22:30 · 453 阅读 · 2 评论 -
SDUT - 2130 数据结构实验之数组一:矩阵转置
#include <stdio.h>#include <stdlib.h>using namespace std;int a[105][105];int main(){ int n, m, i, j; while(scanf("%d %d", &n, &m) != EOF) { for(i = 1; i &...原创 2018-08-29 19:39:44 · 490 阅读 · 1 评论 -
SDUT - 3347 数据结构实验之数组三:快速转置
#include <stdio.h>#include <stdlib.h>using namespace std;struct node{ int x, y, c;}a[1005];int main(){ int n, m, q, i, j; while(scanf("%d %d %d", &n, &m, &q...原创 2018-08-29 20:04:33 · 385 阅读 · 0 评论
分享