"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of th ...
分类:
其他好文 时间:
2018-09-04 01:39:24
阅读次数:
188
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. ...
分类:
其他好文 时间:
2018-09-03 23:01:14
阅读次数:
323
一、题目 1、审题 2、分析: 在时间复杂度为 O(n)条件下求出数组中所缺失的最小正整数。 二、解答 1、思路: 数组大小为 n, 则所缺失的正整数范围 为 1~n+1;考虑将下标为 i 的位置放入对应大小为 i +1 的元素,则最终遍历时查找下标 i 对应的元素不是 i + 1则为缺失的最小正整 ...
分类:
其他好文 时间:
2018-09-03 22:31:09
阅读次数:
210
Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0≤a?i??<10 for all i and a?k??>0. Then N is ...
分类:
其他好文 时间:
2018-09-03 19:22:39
阅读次数:
171
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2018-09-03 13:44:48
阅读次数:
142
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi ...
分类:
其他好文 时间:
2018-09-02 20:10:21
阅读次数:
171
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi ...
分类:
其他好文 时间:
2018-09-02 18:38:51
阅读次数:
202
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ...
分类:
其他好文 时间:
2018-09-02 15:30:11
阅读次数:
171
Description Given a positive integer N, you should output the leftmost digit of N^N. Description Given a positive integer N, you should output the lef ...
分类:
其他好文 时间:
2018-09-01 14:02:49
阅读次数:
159
第三章 Java的基础程序设计结构 一个简单的 Java 应用程序 访问修饰符 public,private,protected main 方法必须时public修饰的,C 则不必须 数据类型 可以用16进制表示浮点数 可以用2,8,16进制表示整数 Double.POSITIVE_INFINITY ...
分类:
编程语言 时间:
2018-09-01 12:14:34
阅读次数:
154