1. 为什么用string::size_type而不是int?--Why usestring::size_type?intis supposed to work! it holds numbers!--A short holds numbers too. So does a signed char....
分类:
编程语言 时间:
2014-07-29 17:37:52
阅读次数:
278
Big Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4622 Accepted Submission(s): 3198
Problem Description
As we know, Big Num...
分类:
其他好文 时间:
2014-07-29 15:06:18
阅读次数:
194
A very interesting numeric problem. It involves a lot tricks.Linear search (by +\-) is not feasible - too slow. So binary search is a good idea. Also ...
分类:
其他好文 时间:
2014-07-29 14:02:08
阅读次数:
187
Bitmap too large to be uploaded into a texture exception图片太大无法显示. 硬件加速中 OpenGL对于内存是有限制的解决方式1: 禁用硬件加速 解决方式2:比较好的解决方法是类似google map的实现:将图片分成不同的块,每次加载需要的块...
分类:
其他好文 时间:
2014-07-29 13:54:38
阅读次数:
233
微软近期Open的职位:Title: Senior SDE The Big Data Tooling team looking for a talented and passionate developer to work on the development and debugging exper...
分类:
其他好文 时间:
2014-07-28 15:22:33
阅读次数:
273
POJ 3013 Big Christmas Tree(最短路Dijkstra+优先队列优化,SPFA)...
分类:
其他好文 时间:
2014-07-28 00:23:19
阅读次数:
243
http://acm.hdu.edu.cn/showproblem.php?pid=1171
题意:有n种物品,给出每种物品的价值和数目,要将这些物品尽可能的分成相等的两份A和B且A>=B ,输出A,B。
母函数可以过,但感觉最直接的方法应该是多重背包。
母函数的话,也是按总价值的一半求,从一半到小枚举,直到找到系数不为0的就是B。
#include
#include
...
分类:
其他好文 时间:
2014-07-27 23:55:09
阅读次数:
275
原文,因为原视频说的太快太长, 又没有字幕,于是借助youtube,把原文听&打出来了。 中文版日后有时间再翻译。one of the big succeess factors here at Spority is our agile engineering culture. Culture tre...
分类:
其他好文 时间:
2014-07-27 23:33:49
阅读次数:
693
猜数字游戏是令系统随机产生一个100以内的正整数,用户输入一个数对其进行猜测,需要你编写程序自动对其与随机产生的被猜数进行比较,并提示大了(“Too big”),还是小了(“Too small”),相等表示猜到了。如果猜到,则结束程序。程序还要求统计猜的次数,如果1次猜出该数,提示“Bingo!”;...
分类:
其他好文 时间:
2014-07-27 22:41:09
阅读次数:
245
今天在Linux下执行w这个命令时,出现70columnwindowistoonarrow,不知道是什么问题,后来在网上查了一下,看一个解决方案,在w后面用管道的方式进行输入,然后在执行w就不会报错了[root@mylab~]#w70columnwindowistoonarrow[root@mylab~]#w|cat20:39:38up5:28,5users,loadavera..