码迷,mamicode.com
首页 >  
搜索关键字:poj 3087 shufflem up    ( 27914个结果
poj 2195 Going Home
DescriptionOn a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vert...
分类:其他好文   时间:2014-07-22 23:15:37    阅读次数:331
使用Apache Axis2 创建 Web Services (bottom-up)
使用ApacheAxis2创建WebServices一.什么是WebServices简单来说WebServices就是一种资源,我们可以通过http访问它,它以xml形式返回我们想要的结果。二.Web应用程序和webservices对比Web应用程序WebServices返回HTML返回XML(SO...
分类:Web程序   时间:2014-07-22 23:14:16    阅读次数:563
【HDOJ】1198 Farm Irrigation
其实就是并查集,写麻烦了,同样的代码第一次提交wa了,第二次就过了。 1 #include 2 #include 3 4 #define MAXNUM 55 5 #define UP 0 6 #define RIGHT 1 7 #define DOWN 2 8 #def...
分类:其他好文   时间:2014-07-22 23:13:53    阅读次数:310
poj 3635 BFS+优先队列
1 /* 2 题意:给出n个地点,每个地点的油价为pi每单位,给出m条边,每条长度为d,行走d距离的路需 3 要d单位的油;给出一辆车的油箱容量以及起始点:s,e;问s到e最少要耗费多少钱 4 5 题解:BFS+优先队列 6 这个搜索方式比较巧妙:状态为对于当前点是走还是油+1,这样...
分类:其他好文   时间:2014-07-22 23:10:56    阅读次数:281
[USACO2005][POJ3044]City Skyline(贪心+单调栈)
题目:http://poj.org/problem?id=3044题意:以坐标的形式给出一张图,表示一些楼房的正视图,求出楼房的最少个数。分析:和小学常做的立方体问题很像,很容易想到一个贪心方法,那就是尽量把矮的楼房放在高的楼房的前面,即连续的等高的一些"X"我们把它视为一座楼房。 具体的做法...
分类:其他好文   时间:2014-07-22 23:09:12    阅读次数:373
POJ_3616_Milking Time
POJ_3616_Milking Time
分类:其他好文   时间:2014-07-22 23:08:13    阅读次数:267
[USACO2005][POJ3045]Cow Acrobats(贪心)
题目:http://poj.org/problem?id=3045题意:每个牛都有一个wi和si,试将他们排序,每头牛的风险值等于前面所有牛的wj(j③,④>①,而又假设原顺序是最优的,那么后来交换后肯定不是最优的,即②<④,即wi+si<wi+1+si+1,即最优序列一定满足wi+si<wi+1+...
分类:其他好文   时间:2014-07-22 23:07:54    阅读次数:245
POJ 3678
Katu PuzzleTime Limit:1000MSMemory Limit:65536KTotal Submissions:7391Accepted:2717DescriptionKatu Puzzle is presented as a directed graphG(V,E) with e...
分类:其他好文   时间:2014-07-22 23:07:34    阅读次数:389
BST(Binary Search Tree)
Definition: see wikihttp://en.wikipedia.org/wiki/Binary_search_tree 1 /* 2 This look up is a fast operation because you eliminate the half 3 t...
分类:其他好文   时间:2014-07-22 23:06:34    阅读次数:330
poj 1274 The Perfect Stall
DescriptionFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering probl...
分类:其他好文   时间:2014-04-29 16:46:46    阅读次数:371
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!