It is lunch time for Mole. His friend, Marmot, prepared him a nice game for lunch. Marmot brought Mole n ordered piles of worms such that i-th pile co ...
分类:
其他好文 时间:
2017-07-26 22:12:35
阅读次数:
144
题目描述 有一个NxN整数矩阵,请编写一个算法,将矩阵顺时针旋转90度。 给定一个NxN的矩阵,和矩阵的阶数N,请返回旋转后的NxN矩阵,保证N小于等于300。 测试样例: [[1,2,3],[4,5,6],[7,8,9]],3 返回:[[7,4,1],[8,5,2],[9,6,3]] 有一个NxN ...
分类:
其他好文 时间:
2017-07-26 00:17:28
阅读次数:
131
1.定义在类内部的函数是隐式的inline函数。 2.因为this的目的总是指向“这个”对象,所以this是一个常量指针,我们不允许改变this中保存的地址。 3.常量成员函数:允许把const关键字放在成员函数的参数列表之后,此时紧跟在参数列表后面的const表示this是一个指向常量的指针。因为 ...
分类:
编程语言 时间:
2017-07-26 00:17:12
阅读次数:
247
Make a program that filters a list of strings and returns a list with only your friends name in it. If a name has exactly 4 letters in it, you can be ...
分类:
其他好文 时间:
2017-07-25 12:33:50
阅读次数:
200
<style> .text{ border:solid 2px #ccc; width:400px; height:40px; background:url(http://d.lanrentuku.com/down/png/1211/blueberry/user_friend.png) no-rep ...
分类:
其他好文 时间:
2017-07-24 17:33:56
阅读次数:
116
Ilya is an experienced player in tic-tac-toe on the 4?×?4 field. He always starts and plays with Xs. He played a lot of games today with his friend Ar ...
分类:
其他好文 时间:
2017-07-24 09:52:11
阅读次数:
225
题意:知道你和朋友的到达时间,两人最多等W范围分钟,问两人会面的概率 ...
分类:
其他好文 时间:
2017-07-23 18:16:50
阅读次数:
195
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 11 class StrVec 12 { 13 friend std::ostream &operator all... ...
分类:
编程语言 时间:
2017-07-23 14:32:15
阅读次数:
270
第五章 条件、循环和其他语句 5.1 print和import的更多信息 5.1.1 使用逗号输出 >>> print('age',43,45) // 可以用逗号隔开多个表达式,中间会有空格age 43 45 5.1.2 把某事件作为另外事件的导入 import somemodule from so ...
分类:
编程语言 时间:
2017-07-22 18:09:18
阅读次数:
145
题意:一行有n个扑克牌,每一个扑克牌有四种颜色,问有几种扑克牌,满足连续四个不相等 ...
分类:
其他好文 时间:
2017-07-22 16:48:43
阅读次数:
116