码迷,mamicode.com
首页 >  
搜索关键字:poj 1753 枚举    ( 34864个结果
poj 1002:487-3279(水题,提高题 / hash)
487-3279Time Limit:2000MSMemory Limit:65536KTotal Submissions:236746Accepted:41288DescriptionBusinesses like to have memorable telephone numbers. One ...
分类:其他好文   时间:2014-06-04 21:08:17    阅读次数:349
poj 3270 Cow Sorting
http://poj.org/problem?id=3270这道题就是给你一个无序序列转换成有序序列需要花费的代价最小,交换a和b代价为a+b; 1 #include 2 #include 3 #include 4 #define maxn 20000 5 using namespace st...
分类:其他好文   时间:2014-06-03 13:14:32    阅读次数:272
求一个二维数组的最大子数组
小组成员:周其范 胡宝月上课的时候老师布置的题目是求一个二维数组的最大子数组,因为以前的时候老师要求我们做过一个题目就是求一个数组的最大子数组,当时的方法就是利用循环把所有可能算出,然后比较那个最大就是那个,也就是所说的枚举法。因此这次我们同样的想到了枚举法。但当我们讨论的时候发现了二维有些麻烦,所...
分类:其他好文   时间:2014-06-03 09:59:43    阅读次数:250
Unity3d:The requested item has been unloaded
问题描述:System.Xml类库下实例化的对象所有枚举类的值都显示如标题错误解决方案1:查看所在类是否:MonoBehaviour,如果没继承,添加即可。
分类:其他好文   时间:2014-05-31 07:53:41    阅读次数:387
poj 1011 Sticks
DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to ...
分类:其他好文   时间:2014-05-30 23:00:32    阅读次数:395
POJ 3680 Intervals 离散 + 费用流
IntervalsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 6246Accepted: 2542DescriptionYou are given N weighted open intervals. The ith interv...
分类:其他好文   时间:2014-05-30 21:46:55    阅读次数:399
poj 1026 Cipher
http://poj.org/problem?id=1026这道题题意是给你一个置换群,再给你一个字符串,输出经过k次置换的字符串。 就是找循环节。 1 #include 2 #include 3 #include 4 #define maxn 3000 5 using namespace s...
分类:其他好文   时间:2014-05-30 21:45:37    阅读次数:249
poj 2362 Square
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, ...
分类:其他好文   时间:2014-05-30 21:21:54    阅读次数:284
poj 1094 Sorting It All Out
DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smalle...
分类:其他好文   时间:2014-05-30 14:31:10    阅读次数:297
POJ 1724 ROADS(BFS+优先队列)
题目链接题意 : 求从1城市到n城市的最短路。但是每条路有两个属性,一个是路长,一个是花费。要求在花费为K内,找到最短路。思路 :这个题好像有很多种做法,我用了BFS+优先队列。崔老师真是千年不变的SPFA啊,链接。还有一个神用了好几种方法分析,链接。用优先队列控制长度,保证每次加的都是最短的,每次...
分类:其他好文   时间:2014-05-30 01:54:32    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!