摘要: Problem Description已知顺序表A与B是两个有序的顺序表,其中存放的数据元素皆为普通整型,将A与B表归并为C表,要求C表包含了A、B表里所有元素,并且C表仍然保持有序。Input 输入分为三行:第一行输入m、n(1#include #include c... 阅读全文
posted @ 2018-09-04 17:10 Mercury_Lc 阅读(184) 评论(0) 推荐(0)
摘要: Problem Description已知顺序表A与B是两个有序的顺序表,其中存放的数据元素皆为普通整型,将A与B表归并为C表,要求C表包含了A、B表里所有元素,并且C表仍然保持有序。Input 输入分为三行:第一行输入m、n(1#include #include c... 阅读全文
posted @ 2018-09-04 17:10 Mercury_Lc 阅读(238) 评论(0) 推荐(0)
摘要: Problem Description一个长度为len(1#include #include const int maxn = 1000000;struct node{ int *elem; int len;};void Creatlist(int len... 阅读全文
posted @ 2018-09-04 10:55 Mercury_Lc 阅读(141) 评论(0) 推荐(0)
摘要: Problem Description一个长度为len(1#include #include const int maxn = 1000000;struct node{ int *elem; int len;};void Creatlist(int len... 阅读全文
posted @ 2018-09-04 10:55 Mercury_Lc 阅读(470) 评论(0) 推荐(0)
摘要: 题解:用一个for,循环m次,每次都把最前面的放到最后面,就可以了。#include #include #include const int maxn = 1000000;struct node{ int *elem; int len;};void C... 阅读全文
posted @ 2018-09-04 10:00 Mercury_Lc 阅读(104) 评论(0) 推荐(0)
摘要: 题解:用一个for,循环m次,每次都把最前面的放到最后面,就可以了。#include #include #include const int maxn = 1000000;struct node{ int *elem; int len;};void C... 阅读全文
posted @ 2018-09-04 10:00 Mercury_Lc 阅读(148) 评论(0) 推荐(0)
摘要: 题解: 每次询问一遍,如果已经存在就不用插入表中了。#include #include #include struct node{ int *elem; int len;};void CreatList(int m, struct node &list){... 阅读全文
posted @ 2018-09-04 09:25 Mercury_Lc 阅读(216) 评论(0) 推荐(0)
摘要: 题解: 每次询问一遍,如果已经存在就不用插入表中了。#include #include #include struct node{ int *elem; int len;};void CreatList(int m, struct node &list){... 阅读全文
posted @ 2018-09-04 09:25 Mercury_Lc 阅读(108) 评论(0) 推荐(0)