Educational Codeforces Round 35 E. Stack Sorting 题意:长度为 n 的序列 a[] ,a[] 里的数是 1~n,一个空栈 s,一个空序列 b[]。两个操作:把 a[] 的第一个数放到 s 里; 或者把 s 的栈顶元素加到 b[] 的末尾。 如果你能通过 ...
分类:
其他好文 时间:
2017-12-31 00:39:37
阅读次数:
168
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key ...
分类:
其他好文 时间:
2017-12-25 23:27:11
阅读次数:
226
题目描述 Once there was a pig, which was very fond of treasure hunting. One day, when it woke up, it found itself in a strange land of treasure. As for ho ...
分类:
其他好文 时间:
2017-12-25 13:44:38
阅读次数:
213
Last years Chicago was full of gangster fights and strange murders. The chief of the police got really tired of all these crimes, and decided to arres ...
分类:
其他好文 时间:
2017-12-20 13:42:57
阅读次数:
196
Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choo ...
分类:
其他好文 时间:
2017-12-17 20:53:18
阅读次数:
177
问题: Amateur astronomers Tom and Bob try to find radio broadcasts of extraterrestrial civilizations in the air. Recently they received some strange sig ...
分类:
其他好文 时间:
2017-12-13 23:49:23
阅读次数:
207
题目: An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to l ...
分类:
编程语言 时间:
2017-12-02 16:22:40
阅读次数:
157
/*Sorting from little to large use List*/ #include <stdio.h> /* printf, scanf, NULL */ #include <stdlib.h> /* malloc, free */ struct node { int key; s ...
分类:
其他好文 时间:
2017-12-01 20:45:08
阅读次数:
193
P1459 三值的排序 Sorting a Three-Valued Sequence P1459 三值的排序 Sorting a Three-Valued Sequence P1459 三值的排序 Sorting a Three-Valued Sequence 题目描述 排序是一种很频繁的计算任务 ...
分类:
编程语言 时间:
2017-11-27 23:35:33
阅读次数:
187
http://poj.org/problem?id=2891 题目大意: k个不同的正整数a1,a2,...,ak。对于一些非负m,满足除以每个ai(1≤i≤k)得到余数ri。求出最小的m。 输入和输出中的所有整数都是非负数,可以用64位整数类型表示。 —————————————— 首先我们打眼一看 ...
分类:
其他好文 时间:
2017-11-27 21:43:10
阅读次数:
154