码迷,mamicode.com
首页 >  
搜索关键字:poj 2007 scrambled p    ( 20315个结果
poj 3278
Catch That Cow Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 43851   Accepted: 13674 Description Farmer John has been informed of the location of a fugitiv...
分类:其他好文   时间:2014-06-05 07:45:38    阅读次数:220
POJ - 1111 Image Perimeters
题意:求'X'围成的周长 思路:按理说每增加一个就是周长加4,但是要减去重复的地方,这里我是用BFS做的,如果是BFS的模板思路的话是不行的,应该要先取出再标记 #include #include #include #include #include using namespace std; const int MAXN = 30; struct node { int x,y; ...
分类:其他好文   时间:2014-06-05 06:23:39    阅读次数:221
POJ 2029 Get Many Persimmon Trees
这是动态规划?我一点思路怎么也没有。最后还是用矩阵部分求和枚举0MS。 题目大意: 给出一个矩阵,上面有几个点。在给一个小点儿的矩阵,求这个矩阵最多能套上几个点。(注意:小矩阵长宽给定,不能旋转)。 解题思路: 建立数组num[i][j]代表点(1,1)到点(i,j)组成的矩阵里有几个点。 下面是代码: #include #include int num[1...
分类:其他好文   时间:2014-06-05 06:14:33    阅读次数:226
Trie树 POJ1056 IMMEDIATE DECODABILITY
题目:http://poj.org/problem?id=1056题意:判断是否有串是其他串的前缀#include#include#include#include#include#include#include#includeusing namespace std;struct Node{ i...
分类:其他好文   时间:2014-05-31 07:46:48    阅读次数:227
POJ训练计划
POJ训练计划Step1-500题 UVaOJ+算法竞赛入门经典+挑战编程+USACO 请见:http://acm.sdut.edu.cn/bbs/read.php?tid=5321 一、POJ训练计划 Moon修订 298道题集训第一天 POJ纯水题 = =: 17道题 2017 1218 200...
分类:其他好文   时间:2014-05-31 01:31:16    阅读次数:361
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!