参考:http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-readCode Complete (2nd edition) by Steve M...
分类:
其他好文 时间:
2014-12-24 13:17:55
阅读次数:
239
安装kvm,用virt-manager启动时报错如下:Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager.py", line 383, in main() File "/usr/share/vi....
分类:
其他好文 时间:
2014-12-24 09:48:57
阅读次数:
385
一个int占多少个字节?这个问题我们往往得到的答案是4.可是int究竟占多少个字节,却跟你的机器环境有关.As you can see, the typical data type sizes match the ILP32LL model, which is what most compilers...
分类:
其他好文 时间:
2014-12-23 22:34:08
阅读次数:
143
As the most powerful diagnostic tool for GM vehicles,GM Tech 2has won for itself many car fans. Additionally, it is still available to do diagnosis fo...
分类:
其他好文 时间:
2014-12-23 17:02:59
阅读次数:
153
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2014-12-23 01:28:12
阅读次数:
180
There is no doubt that it is expensive to buy a luxury car like Porsche. But sometime, its repair bill will cost you much more. Most Porsche owners ha...
分类:
其他好文 时间:
2014-12-22 17:34:28
阅读次数:
142
题目:在火星上有一些原子,他们相互碰撞会释放能量(例如a、b),并且后面的原子会消失(b消失);
现在给你每个原子各一个,问能产生的最大能量值。
分析:状态压缩 DP。按取数的个数为阶段进行 DP,因为与顺序无关,找到下一状态更新即可。
如果只找一条路径,就是 TSP 问题,可将数组变为二维求解。
说明:要不是多组数据,直接位运算+搜索就可...
分类:
其他好文 时间:
2014-12-22 16:19:34
阅读次数:
116
今天下午做了一件非常无聊的事情——逛了一下午自己的微博。我是2010年07月30日加入的微博,如今已经4年多了,写了将近1.7k+条微博(今天删了许多)。我很早就是个微博控,无论大小事都喜欢在微博上说,当时没什么followers,就是自己说给自己听。今天回顾以前的自己,却意外发现了很多有趣的事情,感觉自己在慢慢的、细微的变化着、成长着……我的第一条微博是“He knows most who sp...
分类:
其他好文 时间:
2014-12-21 23:39:52
阅读次数:
264
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2014-12-21 23:24:28
阅读次数:
220
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2014-12-21 21:51:30
阅读次数:
234