- 博客(5)
- 收藏
- 关注
转载 HDU 1159 Common Subsequence
Common Subsequence Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 1159DescriptionA subsequenc...
2013-07-19 20:39:00 73
转载 POJ 1664放苹果
Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。Output...
2013-07-19 20:10:00 65
转载 POJ 1936 - All In ALL
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u DescriptionYou have devised a new encryption technique which encodes a message by inserting between its c...
2013-07-16 19:41:00 77
转载 并查集-畅通工程
题目描述:某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路?解题思路:此处涉及到数据结构中的并查集。解题C语言代码: 1#include<stdio.h> 2 3 int fa...
2013-07-16 19:25:00 102
转载 Ugly number
题目描述DescriptionUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ... shows the first 10 ugly numbers. By convention, 1 is include...
2013-07-15 20:31:00 87
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人