
递推
gi2gj05h
这个作者很懒,什么都没留下…
展开
-
【POJ 2440】 Dna
Description A kind of virus has attacked the X planet, and many lives are infected. After weeks of study, The CHO (Creature Healthy Organization) of X planet finally finds out that this kind of v原创 2016-04-04 15:38:24 · 645 阅读 · 0 评论 -
【HDU 1396】 【ZOJ 1629】 Counting Triangles
Description 给出形如下图的三角形,问它包含多少个小三角形. Input 测试包含多组数据,每行一个数N,代表三角形的层次,上图样例为二层。N 整个测试以数字零代表结束 Output 输出包括多行,每行一个数,结果如题所要求。 Sample Input 1 2 3 0 Sample Output 1 5 13 HINT原创 2016-04-04 15:26:12 · 873 阅读 · 0 评论 -
【HDU 2604】 Queuing
Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our daily life. There are many people lined up at the lunch原创 2016-04-04 17:22:00 · 351 阅读 · 0 评论