上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 题目描述 李旭琳发现小墨老师在班上是最顽劣的学生(没有之一),但他也有安静的时候,例如在看电视的时候。像什么“谍战剧”啊,“翻拍剧”啊,“婆媳戏”啊,“后宫剧”啊都是他的最爱。他甚至会事先查询所有喜欢看的电视节目的转播时间表并煞有介事的用红蓝铅笔列出计划,然后合理安排,以看到尽量多的完整节目。 输入 阅读全文
posted @ 2018-07-20 15:09 RhythmLian 阅读(357) 评论(0) 推荐(0)
摘要: 题目描述 给定一个升序排列的数组,去掉重复的数,并输出新的数组的长度。 例如:数组 $A = \{1, 1, 2\}$,你的程序应该输出 $2$ 即新数组的长度,新数组为 $\{1, 2\}$。 要求:不能新开数组分配额外的空间,即常数空间限制。 输入 输入一个整数 $n(1 \leq n \leq 阅读全文
posted @ 2018-07-20 01:37 RhythmLian 阅读(219) 评论(0) 推荐(0)
摘要: 题目描述 有一个a*b的整数组成的矩阵,现请你从中找出一个n*n的正方形区域,使得该区域所有数中的最大值和最小值的差最小。 有一个a*b的整数组成的矩阵,现请你从中找出一个n*n的正方形区域,使得该区域所有数中的最大值和最小值的差最小。 有一个a*b的整数组成的矩阵,现请你从中找出一个n*n的正方形 阅读全文
posted @ 2018-07-20 01:32 RhythmLian 阅读(198) 评论(0) 推荐(0)
摘要: 题目描述 There are rumors that there are a lot of computers having a problem with the year 2000. As they use only two digits to represent the year, the da 阅读全文
posted @ 2018-07-19 23:50 RhythmLian 阅读(422) 评论(0) 推荐(0)
摘要: 题目描述 A factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are alway 阅读全文
posted @ 2018-07-19 23:24 RhythmLian 阅读(182) 评论(0) 推荐(0)
摘要: 题目描述 Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marble 阅读全文
posted @ 2018-07-19 22:46 RhythmLian 阅读(159) 评论(0) 推荐(0)
摘要: 题目描述 The Joseph's problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, . . ., n 阅读全文
posted @ 2018-07-19 22:01 RhythmLian 阅读(247) 评论(0) 推荐(0)
摘要: 题目描述 George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the or 阅读全文
posted @ 2018-07-19 21:49 RhythmLian 阅读(185) 评论(0) 推荐(0)
摘要: 题目描述 During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor di 阅读全文
posted @ 2018-07-19 17:11 RhythmLian 阅读(138) 评论(0) 推荐(0)
摘要: 题目描述 Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the 阅读全文
posted @ 2018-07-19 16:53 RhythmLian 阅读(117) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页