#include #include #define MAX 1000 //函数原型 void counting_sort(int A[],int length_A,int B[],int k); //测试代码 void main() { int A[]={-3,2...
分类:
编程语言 时间:
2014-11-22 10:32:42
阅读次数:
200
Please correct me if any omission or errorFrom theInventory Management-> journals-> Item Counting> Countingcan enter the inventory:Linescan create a n...
分类:
其他好文 时间:
2014-11-21 12:06:02
阅读次数:
222
Java_信号量_Semaphore应用 计数信号量(Counting Semaphore)用来控制同时访问某个特定资源的操作数量,或者同时执行某个指定操作的数量。计数信号量还可以用来实现某种资源池,或者对容器施加边界。 Semaphore中...
分类:
编程语言 时间:
2014-11-19 02:26:45
阅读次数:
176
hzwer已经说的很好了,在此只能跪烂了 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24...
分类:
其他好文 时间:
2014-11-17 17:42:11
阅读次数:
245
http://poj.org/problem?id=3046
蚂蚁牙黑,蚂蚁牙红:有A只蚂蚁,来自T个家族。同一个家族的蚂蚁长得一样,但是不同家族的蚂蚁牙齿颜色不同。任取n只蚂蚁(S
这是《2.3 记录结果再利用的“动态规划” 优化递推关系式》练习题的第二题。
定义
dp[i][j] := 使用前i个家族可以配出来“元素个数为j”的集合的个数。
那么dp...
分类:
其他好文 时间:
2014-11-15 15:36:27
阅读次数:
147
Vowel Counting
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1413 Accepted Submission(s): 1043
Problem Description
The "Vowe...
分类:
其他好文 时间:
2014-11-14 21:15:14
阅读次数:
168
iOS应用开发:什么是ARC?博客分类:Phone / IOS / Objective-C / SwiftARC是什么ARC是iOS 5推出的新功能,全称叫 ARC(Automatic Reference Counting)。简单地说,就是代码中自动加入了retain/release,原先需要手动添...
分类:
移动开发 时间:
2014-11-13 22:16:53
阅读次数:
300
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1396题目大意:给你个如图n层的三角形, 问里面总共有多少个三角形。题目分析:其实里面的三角形可以分为2种, 一种顶尖朝上,即△, 另一种 即▽。假设第n层 1.之前所有(n-1)层的所有三角形 dp[n...
分类:
其他好文 时间:
2014-11-12 17:46:07
阅读次数:
183
#include #include using namespace std;#define COL 10#define ROW 10int tbl[ROW][COL];void print(int* tbl) { for (int i=0; i<ROW; i++) { for (...
分类:
其他好文 时间:
2014-11-08 21:57:48
阅读次数:
252
DescriptionProblem HCounting RectanglesInput: Standard InputOutput:Standard Output Time Limit: 3SecondsGiven n points on the XY plane, count how many ...
分类:
其他好文 时间:
2014-11-08 16:32:29
阅读次数:
173