Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split int....
分类:
其他好文 时间:
2014-08-10 18:33:30
阅读次数:
285
返回受上一语句影响的行数。如果行数大于 20 亿,请使用ROWCOUNT_BIG。Transact-SQL 语句可以通过下列方式设置 @@ROWCOUNT 的值:将 @@ROWCOUNT 设置为受影响或被读取的行的数目。可以将行发送到客户端,也可以不发送。保留前一个语句执行中的 @@ROWCOUNT...
分类:
其他好文 时间:
2014-08-10 18:09:00
阅读次数:
149
题意 把一堆东西尽量分为两份 第一份不小于第二份
把所有东西的总价值s除以2 让它装尽量多的东西作为第二份 剩下的就是第一份了
题目有个小坑点 是以负数作为结束条件的 不是-1 还有不要开始把s/=2 后来第一份又用s*2-d[s] 因为s/2*2不一定等于s了...
分类:
其他好文 时间:
2014-08-10 10:29:20
阅读次数:
282
Reference:http://en.wikipedia.org/wiki/Rule_of_three_(C%2B%2B_programming)Therule of three(also known as the Law of The Big Three or The Big Three) is...
分类:
其他好文 时间:
2014-08-09 23:03:59
阅读次数:
331
宏就是文字展开,实际中可以展开写出来发现错误。
6.1 不能忽视宏定义中的空格
6.2 宏并不是函数
宏定义一个函数时,
1、要把每个参数用括号括起来
2、同时也要把整个表达式括起来。
3、要确保宏中的参数没有副作用
#define max(a,b) ((a)>(b)?(a):(b))
max(big,x[i++]),这时++有可能被计算两次...
分类:
其他好文 时间:
2014-08-09 16:00:18
阅读次数:
204
Encoded Barcodes
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Submit Status Practice UVALive
5029
Description
All the big malls need a powerful system f...
分类:
其他好文 时间:
2014-08-08 21:25:16
阅读次数:
302
Any class that manages a resource (awrapper, like a smart pointer) needs to implementThe Big Three. While the goals and implementation of the copy-con...
分类:
其他好文 时间:
2014-08-08 15:51:06
阅读次数:
262
Description
You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand...
分类:
其他好文 时间:
2014-08-08 12:47:45
阅读次数:
296
就是一个多重背包可行性判断,范围不大的话也可以用母函数处理出所有的情况、#include #include #include #include #include #include #include #include #include #include #include #include #inclu...
分类:
其他好文 时间:
2014-08-07 12:55:49
阅读次数:
230
这题 就是 简单的 多重背包应用..本来以为可以很快地写出来;WA了无数次就是没找出哪里错了(有太自信的缘故);百度了半天别人的代码,对照了半小时...说实话都要吐血了....;终于发现了哪里错了;教训,教训啊;再简单的题目也要慢慢来,不能太自信; 1 #include 2 #define maxn...
分类:
其他好文 时间:
2014-08-06 22:51:52
阅读次数:
212