码迷,mamicode.com
首页 >  
搜索关键字:count and say    ( 19436个结果
题目1001:A+B for Matrices
题目描述: 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
LeetCode "Unique Binary Search Trees"
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
UVa 11583 Partitioning by Palindromes
?? 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
Linux Loopback 使用
有时候需要一个独立的块设备,loopback是个方便的选择,可通过如下方式创建dd if=/dev/zero of=./loopback_file bs=1M count=1000losetup /dev/loop0 ./loopback_file首先建立一个指定大小的文件作为实际存储的空间,然后将...
分类:系统相关   时间:2014-07-18 14:39:41    阅读次数:625
VBA读取文件夹下所有文件夹及文件内容,并以树形结构展示
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
Linux命令之WC
$ 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
ZOJ 2965 Accurately Say CocaCola
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扩展 或 Jquery的扩展写法
//JS的扩展方法: 1 定义类静态方法扩展 2 定义类对象方法扩展 var aClass = function(){} //1 定义这个类的静态方法 aClass.sayHello = function(){ alert('say hello');...
分类:Web程序   时间:2014-07-17 22:38:35    阅读次数:307
pthread_count_t与pthread_mutex_t的运用
#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
UVA 10139 Factovisors(数论)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!