We should keep in mind that never let the integer value overranged or overstacked..Here is the trick, instead of comparing the square of a interger wi...
分类:
其他好文 时间:
2016-01-20 13:09:06
阅读次数:
119
friend是C++中封装的漏网之鱼。C++中的friend同意其它的类或者是函数訪问本类的不论什么成员。甚至是private成员,仅仅要该类声明其为友元。但是,在有些情况下,并非同意外界訪问类的内部实现而使用友元。这就是在 “模板定义” 与 “隐式类型转换” 之间的一个trick了。首先,看一个简...
分类:
其他好文 时间:
2016-01-18 22:25:51
阅读次数:
222
DescriptionWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patrick's perso...
分类:
其他好文 时间:
2016-01-08 21:49:40
阅读次数:
346
1DP. Intuitive DP. But please note the if condition, there's a trick - we cannot build upon an invalid dp slot.class Solution {public: int coinChan...
分类:
其他好文 时间:
2016-01-06 20:17:39
阅读次数:
341
The trick is to use the classes without soiling the existing code. 1. composition--simply create objects of your existing class inside the new class.....
分类:
编程语言 时间:
2016-01-01 00:22:52
阅读次数:
214
题目概述: While Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patrick's personal ....
分类:
其他好文 时间:
2015-11-22 17:22:04
阅读次数:
124
B. Spongebob and JokeWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patri...
分类:
其他好文 时间:
2015-11-21 18:33:19
阅读次数:
238
NOI2015 day1t1:离散化,并查集 day1t2:树链剖分,dfs序 day1t3:状态压缩动态规划,trick day2t1:k叉哈夫曼树 day2t2:后缀数组,按序合并 day2t3:动态规划,有上下界网络流 unsolved:day2t3
分类:
其他好文 时间:
2015-11-18 15:49:39
阅读次数:
125
mean: adj. 自私的;卑鄙的;平均的;卑微的/卑贱的 he is mean about money. he's got a mean streak(条纹; 性格,倾向) in him.that was a mean trick. n. 平均值 v. 意味着o'scilloscope :示波器...
分类:
其他好文 时间:
2015-11-17 21:52:13
阅读次数:
244
Excel中有很多执行线性代数运算的函数,只要轻点鼠标,各种计算都手到擒来。但是使用这些函数在操作上其实还是有点trick的,今天我们就来演示一下如何在Excel中执行两个矩阵的乘法。...
分类:
其他好文 时间:
2015-11-08 20:55:49
阅读次数:
217