题目描述: This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns.输入: The input consist...
分类:
其他好文 时间:
2014-07-18 18:26:02
阅读次数:
227
Another recursion-style problem.1. Each count of sub-solution with a certain root should contribute to final count2. With a certain root, the num of l...
分类:
其他好文 时间:
2014-07-18 18:18:01
阅读次数:
187
??
Description
Problem H: Partitioning by Palindromes
We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome,...
分类:
其他好文 时间:
2014-07-18 15:13:10
阅读次数:
266
有时候需要一个独立的块设备,loopback是个方便的选择,可通过如下方式创建dd if=/dev/zero of=./loopback_file bs=1M count=1000losetup /dev/loop0 ./loopback_file首先建立一个指定大小的文件作为实际存储的空间,然后将...
分类:
系统相关 时间:
2014-07-18 14:39:41
阅读次数:
625
Const TR_LEVEL_MARK = "+"Const TR_COL_INDEX = "A"Const TR_COL_LEVEL = "E"Const TR_COL_NAME = "C"Const TR_COL_COUNT = "D"Const TR_COL_TREE_START = "F"C...
分类:
其他好文 时间:
2014-07-18 14:16:07
阅读次数:
414
$ wc story.txt39 237 1901 story.txt● Use -l for only line count● Use -w for only word count● Use -c for only byte count● Use -m for character count (n...
分类:
系统相关 时间:
2014-07-18 00:22:31
阅读次数:
278
A - Accurately Say "CocaCola"!DescriptionIn a party held by CocaCola company, several students stand in a circle and play a game.One of them...
分类:
其他好文 时间:
2014-07-18 00:01:04
阅读次数:
239
//JS的扩展方法: 1 定义类静态方法扩展 2 定义类对象方法扩展 var aClass = function(){} //1 定义这个类的静态方法 aClass.sayHello = function(){ alert('say hello');...
分类:
Web程序 时间:
2014-07-17 22:38:35
阅读次数:
307
#include
#include
#include
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;/*初始化互斥锁*/
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;/*初始化条件变量*/
void *thread1(void *);
void *thread2(void *)...
分类:
其他好文 时间:
2014-07-17 20:10:40
阅读次数:
218
Factovisors
The factorial function, n! is defined thus for n a non-negative integer:
0! = 1
n! = n * (n-1)! (n > 0)
We say that a divides b if there exists an integer k such that
k*a =...
分类:
其他好文 时间:
2014-07-17 19:05:06
阅读次数:
235