摘要: UVA 10082 - WERTYUA common typing error is to place thehands on the keyboard one row to theright of the correct position. So ‘Q’ istyped as ... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(67) 评论(0) 推荐(0)
摘要: C字符串-字符数组输入输出函数输入函数scanf("%s", s)读入字符串,在第一个空白符(' '、'\n'、'\t')处停止,不读入空白符,在串尾自动添加'\0'。(%*c表示读入并舍弃,可用于"吃掉"末尾的回车)gets(s)读入一行字符,直到遇到'\n',读入换行符并将其... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(257) 评论(0) 推荐(0)
摘要: 排序:将杂乱无章的数据,按照一定的方法进行排列的过程叫做排序。排序的分类排序大的分类可分为内排序和外排序,不需要访问外存就能进行排序的叫做内排序。内排序又可以分为以下几类:插入排序:直接插入排序、二分法插入排序、希尔排序。选择排序:直接选择排序、堆排序。交换排序:冒泡排序、快速排... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(176) 评论(0) 推荐(0)
摘要: 基础知识基本概念 程序 = 算法 + 数据结构 数据结构是计算机存储、组织数据的方式。 数据结构是指相互之间存在一种或多种特定关系的数据元素的集合。 通常情况下,精心选择的数据结构可以带来更高的运行或者存储效率。 数据结构往往同高效的检索算法和索引技... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(182) 评论(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-09-22 18:01 passwd.d 阅读(181) 评论(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-09-22 18:01 passwd.d 阅读(697) 评论(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-09-22 18:01 passwd.d 阅读(113) 评论(0) 推荐(0)
摘要: 安装配置MinGw下载安装MinGW去官网下载MinGw :http://www.mingw.org/或者下载我已经下载好的完整版:http://pan.baidu.com/s/1gfgluin (2017.7.5更新)如图所示官网下载的选好后 Installation > ... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(144) 评论(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-09-22 18:01 passwd.d 阅读(165) 评论(0) 推荐(0)
摘要: 题目描述:给你n个整数,请按从大到小的顺序输出其中前m大的数。输入:每组测试数据有两行,第一行有两个数n,m(0#include#include#include#define N 1000000using namespace std;int a[N];int main(){ ... 阅读全文
posted @ 2017-09-22 18:01 passwd.d 阅读(145) 评论(0) 推荐(0)