上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 72 下一页
摘要: http://poj.org/problem?id=1062 Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到 阅读全文
posted @ 2014-09-15 16:28 人艰不拆_zmc 阅读(342) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5012 Problem Description There are 2 special dices on the table. On each face of the dice, a distinct number 阅读全文
posted @ 2014-09-14 19:26 人艰不拆_zmc 阅读(295) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1860 Description Several currency exchange points are working in our city. Let us suppose that each point specializes in two 阅读全文
posted @ 2014-09-13 19:44 人艰不拆_zmc 阅读(364) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1789 Description Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, 阅读全文
posted @ 2014-09-12 22:03 人艰不拆_zmc 阅读(294) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2485 Description The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the tra 阅读全文
posted @ 2014-09-12 21:08 人艰不拆_zmc 阅读(240) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1258 Description Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connecti 阅读全文
posted @ 2014-09-12 18:54 人艰不拆_zmc 阅读(395) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2833 A friend is like a flower, a rose to be exact, Or maybe like a brand new gate that n 阅读全文
posted @ 2014-09-11 11:54 人艰不拆_zmc 阅读(452) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1182 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动 阅读全文
posted @ 2014-09-09 21:33 人艰不拆_zmc 阅读(430) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; typedef struct Node { struct Node *next; int l;//线性表的长度 int data; } Node; Node *head,*head1,*tail,*p,*q; int S,n; void Showmai... 阅读全文
posted @ 2014-09-09 10:21 人艰不拆_zmc 阅读(372) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2465 题目描述 由于前两次的打击,ZYJ同学不再喜欢密码学,他喜欢上了游戏。某一 天,他要玩魔塔这个游戏,游戏规则是这样的,游戏地图的大小为N*M,一开始 阅读全文
posted @ 2014-09-02 20:53 人艰不拆_zmc 阅读(301) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2528 Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have bee 阅读全文
posted @ 2014-09-01 21:27 人艰不拆_zmc 阅读(261) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2806 名字的价值 题目描述 每 个人都有名字,名字都是唯一的不存在重复现象。现在假设名字都是由小写字母组成并且长度不超过10,我们赋予每个名字一个初始价值 阅读全文
posted @ 2014-08-28 20:53 人艰不拆_zmc 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1、 线段树是二叉树,且必定是平衡二叉树,但不一定是完全二叉树。 2、 对于区间[a,b],令mid=(a+b)/2,则其左子树为[a,mid],右子树为[mid+1,b],当a==b时,该区间为线段树的叶子,无需继续往下划分。 3、 线段树虽然不是完全二叉树,但是可以用完全二叉树的方式去构造并存储 阅读全文
posted @ 2014-08-28 10:28 人艰不拆_zmc 阅读(2817) 评论(0) 推荐(4) 编辑
摘要: http://poj.org/problem?id=3169 题意: 一堆牛在一条直线上按编号站队,在同一位置可以有多头牛并列站在一起,但编号小的牛所占的位置不能超过编号大的牛所占的位置,这里用d[i]表示编 号为i的牛所处的位置,即要满足d[i]-d[i+1]<=0,同时每两头牛之间有以下两种关系 阅读全文
posted @ 2014-08-28 09:18 人艰不拆_zmc 阅读(324) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1712 分组背包 问题 有N件物品和一个容量为V的背包。第i件物品的费用是c[i],价值是w[i]。这些物品被划分为若干组,每组中的物品互相冲突,最多选一件。求解将哪些物品装入背包可使这些物品的费用总和不超过背包容 阅读全文
posted @ 2014-08-27 20:46 人艰不拆_zmc 阅读(717) 评论(0) 推荐(0) 编辑
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 72 下一页