
acm程序设计题目
文章平均质量分 85
Ink__Bamboo
心安则无事,心静则踏实,coding coding coding!!!
展开
-
HDU上的专题训练
转载自:http://blog.youkuaiyun.com/wconvey/article/details/7460909HDU上的专题训练(背包问题-线段树+树状数组+DP优化+网络流+字符匹配+最短路+矩阵乘法+搜索专题++)就是DIY上的专题训练【背包问题】2602 Bone Collector 1114 Piggy-Bank转载 2015-04-23 20:00:59 · 1561 阅读 · 0 评论 -
poj1634
转载自:http://blog.youkuaiyun.com/wuhuajunbao/article/details/38454175Who's the boss?Time Limit: 5000MS Memory Limit: 30000KTotal Submissions: 2626 Accepted: 1078Descr转载 2014-08-12 22:52:11 · 652 阅读 · 0 评论 -
poj2246
Matrix Chain MultiplicationTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2095 Accepted: 1327DescriptionSuppose you have to evaluate an expression like原创 2015-03-16 21:33:28 · 581 阅读 · 0 评论 -
poj 2503 map实现和字典树实现
BabelfishTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 34681 Accepted: 14869DescriptionYou have just moved from Waterloo to a big city. The people her原创 2015-03-27 09:02:11 · 524 阅读 · 0 评论 -
poj1833
排列Time Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17145 Accepted: 6860Description题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列出,如n=3时,列出1原创 2015-04-04 17:02:32 · 619 阅读 · 0 评论 -
poj2499
Binary Tree Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 3Problem DescriptionBackgroundBinary trees are原创 2014-08-15 10:18:59 · 650 阅读 · 0 评论 -
poj2255有树的先序,中序遍历,找出树的后序遍历
Tree Recovery Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 4Problem DescriptionLittle Valentine liked pla原创 2014-08-16 10:10:23 · 511 阅读 · 0 评论 -
poj3321解题报告
tim给你一颗苹果树,树的主干设为1,每一个分支设为一个数,一直到N,代表这颗苹果树。每个分支上面只能最多有一个苹果,也就是一个枝子上面不可能有两个苹果,另外注意一点,不要把苹果树想象成二叉树,苹果树每个节点可以分出很多叉,应该是多叉树。 输入是叉之间的关系,1 21 3就是主干上面两个叉分别是2 和3. 下面是两种操作,Q 和C转载 2014-08-09 15:47:00 · 788 阅读 · 0 评论 -
树状数组简单题----杭电1541
StarsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5142 Accepted Submission(s): 2021Problem DescriptionAstronomers often examin原创 2014-12-05 19:18:08 · 491 阅读 · 0 评论 -
LA4329
LA4329 Ping pong(树状数组与组合原理)N (3N20000)ping pong players live along a west-east street(consider the street as a line segment). Each player has a unique skill rank. To improve their skill原创 2015-03-23 16:15:37 · 683 阅读 · 1 评论 -
poj1470
转载自他人的代码:tarjan转载 2014-08-12 13:18:37 · 696 阅读 · 0 评论 -
poj 1012 约瑟夫问题
转载自:http://blog.youkuaiyun.com/vinci_lau/article/details/7079005JosephDescriptionThe Joseph's problem is notoriously known. For those who are not familiar with the original problem: from among n转载 2015-04-02 16:45:24 · 644 阅读 · 0 评论 -
ACM算法列表
分类: 文摘 2012-11-07 19:24 1048人阅读 评论(0) 收藏 举报 ACM 所有算法数据结构栈,队列,链表哈希表,哈希数组堆,优先队列双端队列可并堆左偏堆二叉查找树Treap伸展树转载 2014-10-18 10:27:30 · 516 阅读 · 0 评论 -
poj2230欧拉图
WatchcowTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 6250 Accepted: 2704 Special JudgeDescriptionBessie's been appointed the new watch-cow for th原创 2015-04-05 20:21:46 · 515 阅读 · 0 评论 -
poj 2438哈密顿回路
Children's DiningTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4263 Accepted: 582 Special JudgeDescriptionUsually children in kindergarten like原创 2015-04-06 10:18:53 · 676 阅读 · 0 评论 -
hdu4081秦始皇
http://acm.hdu.edu.cn/showproblem.php?pid=4081我就不说题意了,为了使A/B最大,就应该是B越小,故可以先求出n个点的最小生成树。因此,可以枚举每一条边,假设最小生成树的值是B, 而枚举的那条边长度是edge[i][j], 如果这一条边已经是属于最小生成树上的,那么最终式子的值是A/(B-edge[i][j])。如果这一条不属于最小生成树上的,转载 2015-04-16 15:05:56 · 619 阅读 · 0 评论 -
poj2186
转载自:http://www.cnblogs.com/void/articles/2048209.html有N(N给出N,M和M个欢迎关系,求被所有牛都欢迎的牛的数量。用强联通分量做,求连通分量我用的是Kosaraju算法。首先求出联通分量的个数,然后依次求各个联通分量的出度,如果仅有一个连通分量出度为0则这个联通分量内的点的个数就是答案;如果有多于一个的联通分转载 2015-04-29 20:35:37 · 469 阅读 · 0 评论 -
poj1236
转载自:http://blog.youkuaiyun.com/wangjian8006/article/details/7888558想看更多的解题报告: http://blog.youkuaiyun.com/wangjian8006/article/details/7870410 题目大意:有N个学校,从每个学校都能从一个单向网络到另外一个转载 2015-05-01 11:20:46 · 510 阅读 · 0 评论 -
poj2136
Vertical HistogramTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17789 Accepted: 8599DescriptionWrite a program to read four lines of upper case (i.e.,原创 2015-03-12 22:33:54 · 738 阅读 · 0 评论 -
ugly number
寻找丑数(Ugly Number)2010-10-29我们把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第1500个丑数下面是一道在网络上广为流传的面试题,据说google曾经采用过这道题。所谓一个数m是另一个数n的因子,是指n能被m整除,也就是n % m转载 2015-03-12 22:38:16 · 424 阅读 · 0 评论 -
HDU 1284 钱币兑换问题
钱币兑换问题http://acm.hdu.edu.cn/showproblem.php?pid=1284Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K(Java/Others)Total Submission(s): 3261 Accepted Submission(s):1842Pr转载 2015-05-04 11:11:48 · 876 阅读 · 0 评论 -
历年IOI国家集训队论文题目
中国国家集训队论文集目录(1999-2008) 国家集训队1999论文集陈宏:《数据结构的选择与算法效率——从IOI98试题PICTURE谈起》来煜坤:《把握本质,灵活运用——动态规划的深入探讨》齐鑫:《搜索方法中的剪枝优化》邵铮:《数学模型的建立、比较和应用》石润婷:《隐蔽化、多维化、开放化——论当今信息学竞赛中数学建模的灵活性》杨帆:《准确性、转载 2014-12-10 20:09:16 · 1921 阅读 · 0 评论 -
poj 1988
Cube StackingTime Limit : 4000/2000ms (Java/Other) Memory Limit : 60000/30000K (Java/Other)Total Submission(s) : 10 Accepted Submission(s) : 4Problem DescriptionFarmer John and Betsy are p原创 2014-08-08 14:34:44 · 480 阅读 · 0 评论 -
poj1909
Marbles on a tree Time Limit : 2000/1000ms (Java/Other) Memory Limit : 60000/30000K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 3Problem Descriptionn boxes are placed on t转载 2014-08-13 10:53:02 · 758 阅读 · 0 评论 -
深搜,hdoj1518square
HDOJ 1518 Square(DFS 深搜)分类: 深搜2012-09-05 20:29 841人阅读 评论(0) 收藏 举报integeroutputeachinputjoinim题目SquareTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Jav转载 2014-04-20 10:41:36 · 641 阅读 · 0 评论 -
hdu1181
变形课Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 7 Accepted Submission(s) : 4Problem Description呃......变形课上Harry碰到了一点小麻烦,因为他并原创 2015-04-13 11:41:56 · 797 阅读 · 0 评论 -
多重背包练习-计数法-POJ-1276-Cash Machine
Cash MachineTime Limit: 1000MS Memory Limit: 10000KTotal Submissions:22644 Accepted: 7943DescriptionA Bank plans to install a machine for cash withdrawal. T转载 2014-05-05 21:38:08 · 579 阅读 · 0 评论 -
01背包poj3624
Charm BraceletTime Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 7 Accepted Submission(s) : 3Problem DescriptionBessie has gon原创 2014-04-09 22:17:46 · 601 阅读 · 0 评论 -
hdu1158 Common Subsequence
Common Subsequence Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 12 Accepted Submission(s) : 6Problem DescriptionA subsequence of a gi原创 2014-04-12 11:11:40 · 460 阅读 · 0 评论 -
hdu最少拦截系统
最少拦截系统Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 62 Accepted Submission(s) : 21Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统原创 2014-05-05 11:20:24 · 809 阅读 · 0 评论 -
hdu2844多重背包简单应用
CoinsTime Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 30 Accepted Submission(s) : 13Problem DescriptionWhuacmers use coins.They h原创 2014-05-05 20:43:08 · 567 阅读 · 0 评论 -
poj 1276 Cash Machine
Cash MachineTime Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)Total Submission(s) : 16 Accepted Submission(s) : 9Problem DescriptionA Bank plans to inst原创 2014-05-06 09:55:09 · 506 阅读 · 0 评论 -
hdu 1114
Piggy-BankTime Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)Total Submission(s) : 11 Accepted Submission(s) : 8Problem DescriptionBefore ACM can do anyt原创 2014-05-06 10:34:07 · 490 阅读 · 0 评论 -
hdu1181
变形课Time Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 14 Accepted Submission(s) : 8Problem Description呃......变形课上Harry碰到了一点小麻烦,因为他原创 2014-04-18 21:14:40 · 641 阅读 · 0 评论 -
poj2262
Goldbach's ConjectureTime Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 6 Accepted Submission(s) : 4Problem DescriptionIn 1742, Ch原创 2014-04-29 16:10:17 · 474 阅读 · 0 评论 -
poj1401
DescriptionThe most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this term gave the name to the cellular phone) and转载 2014-04-28 11:38:27 · 521 阅读 · 0 评论 -
hdu1874
Problem Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。 Input本题目包含多组数据,请处理到文件结束。 每组数据原创 2014-05-04 20:35:35 · 720 阅读 · 0 评论 -
hdu1272
Problem ATime Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 30 Accepted Submission(s) : 13Problem Description上次Gardon的迷宫城堡小希玩了很久(见P原创 2014-05-03 08:23:54 · 438 阅读 · 0 评论 -
poj1611
Problem CTime Limit : 2000/1000ms (Java/Other) Memory Limit : 40000/20000K (Java/Other)Total Submission(s) : 17 Accepted Submission(s) : 11Problem DescriptionSevere acute respirato原创 2014-05-03 10:17:47 · 524 阅读 · 0 评论 -
poj 1703(并查积)
转载自http://blog.youkuaiyun.com/mad_lpx/article/details/7427008Find them, Catch themTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 20136 Accepted: 5963转载 2014-05-03 11:17:52 · 454 阅读 · 0 评论