Description
Given two positive integers n and k, you are asked to generate a new integer, say m, by changing some (maybe none) digits of n, such that the following properties holds:
m contains n...
分类:
其他好文 时间:
2014-07-29 14:22:18
阅读次数:
225
Problem DescriptionMr Wang wants some boys to help him with a project. Because the project is rather complex,the more boys come, the better it will be...
分类:
其他好文 时间:
2014-07-29 14:15:38
阅读次数:
194
Problem StatementWe have three types of brackets: "()", "[]", and "{}". We are now interested in some special strings. A string is special if all the ...
分类:
其他好文 时间:
2014-07-29 12:41:06
阅读次数:
187
Flip Sort Sorting in computer science is an important part. Almost every problem can be solved effeciently if sorted data are found. There are some ex...
分类:
其他好文 时间:
2014-07-28 23:53:34
阅读次数:
260
make -dshould give you more than enough information to debug your makefile.Be warned: it will take some time and effort to analyze the output but load...
分类:
其他好文 时间:
2014-07-28 14:58:43
阅读次数:
490
#umount /mnt/fourtumount: /mnt/fourt: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) ...
分类:
移动开发 时间:
2014-07-28 14:42:53
阅读次数:
308
在python2.5+中可以用with来保证关闭打开的文件with open('hello.txt') as f: do some file operations为什么要引入with呢?在之前如果要保证关闭文件需要这样:f = open('hello.txt')try: do some fi...
分类:
编程语言 时间:
2014-07-28 11:36:00
阅读次数:
305
Problem Description
FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:
其他好文 时间:
2014-07-28 00:02:49
阅读次数:
319
heap block 引发的思考
问题背景:
Implicit Free Lists
Any practical allocator needs some data structure that allows it to distinguish block boundaries and to distinguish between allo...
分类:
其他好文 时间:
2014-07-27 23:38:29
阅读次数:
452
C++调用C#生成的DLL文件: 首先选择建立一个C#的类库,然后再按照需求编写需要的函数 之后,对于C++调用过程需要注意的几点: 1.使用#using 指出DLL文件的位置来调用DLL 2.using namespace some 方便之后调用函数 3.Class1 ^c = gcne...
分类:
编程语言 时间:
2014-07-27 23:27:29
阅读次数:
274