题目描述: Professor Clumsey is going to give an important talk this afternoon. Unfortunately, he is not a very tidy person and has put all his transparenc ...
分类:
其他好文 时间:
2018-02-08 00:38:09
阅读次数:
151
Strange Way to Express Integers Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 17963 Accepted: 6050 Description Elina is reading a book w ...
分类:
其他好文 时间:
2018-02-07 12:07:54
阅读次数:
170
Strange Way to Express Integers Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 17877 Accepted: 6021 Description Elina is reading a book w ...
分类:
其他好文 时间:
2018-02-02 20:23:42
阅读次数:
178
911E - Stack Sorting 思路: 用栈来模拟,能pop就pop,记下一个需要pop的数为temp,那么如果栈非空,栈顶肯定大于temp,那么加入栈 栈顶值-1 到 temp 的值,否则加入栈 n 到 1 的值,如果需要加入的数之前已经出现过,答案则不存在。 代码: ...
分类:
其他好文 时间:
2018-01-25 19:50:28
阅读次数:
179
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 ...
分类:
其他好文 时间:
2018-01-23 10:56:43
阅读次数:
135
推荐一个可视化的网站 【 Visual Algo 】: URL= 'https://visualgo.net/en/sorting' 这个网站给出了各种排序算法的原理和过程,通过动态形式直观得展现出来。另外还给出了相关的pseudo-code,以及具体执行到code的哪一步。 【冒泡排序】 需要重复 ...
分类:
编程语言 时间:
2018-01-20 15:09:36
阅读次数:
281
There is a strange printer with the following two special requirements: The printer can only print a sequence of the same character each time. At each ...
分类:
其他好文 时间:
2018-01-20 11:06:05
阅读次数:
195
Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. A ...
分类:
其他好文 时间:
2018-01-18 10:16:16
阅读次数:
180
Byteotian Interstellar Union (BIU) has recently discovered a new planet in a nearby galaxy. The planet is unsuitable for colonisation due to strange m ...
分类:
其他好文 时间:
2018-01-04 19:35:15
阅读次数:
204
In a strange planet there are n races. They are completely different as well as their food habits. Each race has a food-eating period. That means the ...
分类:
其他好文 时间:
2018-01-03 17:33:17
阅读次数:
186