上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 排序:将杂乱无章的数据,按照一定的方法进行排列的过程叫做排序。排序的分类排序大的分类可分为内排序和外排序,不需要访问外存就能进行排序的叫做内排序。内排序又可以分为以下几类:插入排序:直接插入排序、二分法插入排序、希尔排序。选择排序:直接选择排序、堆排序。交换排序:冒泡排序、快速排... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 基础知识基本概念 程序 = 算法 + 数据结构 数据结构是计算机存储、组织数据的方式。 数据结构是指相互之间存在一种或多种特定关系的数据元素的集合。 通常情况下,精心选择的数据结构可以带来更高的运行或者存储效率。 数据结构往往同高效的检索算法和索引技... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the ... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(81) 评论(0) 推荐(0) 编辑
摘要: There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problemand an ‘X’ means a wrong answer. The score... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(39) 评论(0) 推荐(0) 编辑
摘要: NPY is learning arithmetic progression in his math class. In mathematics, an arithmetic progression (AP) is a sequence of numbers such that ... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 安装配置MinGw下载安装MinGW去官网下载MinGw :http://www.mingw.org/或者下载我已经下载好的完整版:http://pan.baidu.com/s/1gfgluin (2017.7.5更新)如图所示官网下载的选好后 Installation > ... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Description输入n(n #include #define N 101void quick_sort(int s[], int l, int r){ int i, j, x; if (l abs(x)) j--; /* 从右... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 题目描述:给你n个整数,请按从大到小的顺序输出其中前m大的数。输入:每组测试数据有两行,第一行有两个数n,m(0#include#include#include#define N 1000000using namespace std;int a[N];int main(){ ... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 元组与列表的区别之处在于,元组的元素不能修改。但是可以进行分片链接操作。元组name=('赵驰',100,99,88)列表name=['赵驰',100,99,88]元组采用小括号,列表采用方括号image.png元组常见操作元组合并image.png元组删除元组内的元素不允许被删... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 字典字典可以理解为列表的升级版列表list={“dandan”,"zhangsan","wangwu"}字典dic={'name':'淡淡','sex':'男','professional':'计算机科学与技术'}如果需要修改"zhangsan",则需要先找到它的下标,而字典是根... 阅读全文
posted @ 2017-07-17 20:19 mlzc 阅读(135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页