04 2016 档案

摘要:HDU 3613 Description After an uphill battle, General Li won a great victory. Now the head of state decide to reward him with honor and treasures for h 阅读全文
posted @ 2016-04-24 12:03 茶飘香~ 阅读(213) 评论(0) 推荐(0) 编辑
摘要:HDU 3068 Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba等 HDU 3068 Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长 阅读全文
posted @ 2016-04-24 11:42 茶飘香~ 阅读(178) 评论(0) 推荐(0) 编辑
摘要:HDU 5371 Description Hotaru Ichijou recently is addicated to math problems. Now she is playing with N-sequence. Let's define N-sequence, which is comp 阅读全文
posted @ 2016-04-19 20:00 茶飘香~ 阅读(293) 评论(0) 推荐(0) 编辑
摘要:HDU 3294 Problem Description One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation contains two 阅读全文
posted @ 2016-04-17 17:56 茶飘香~ 阅读(166) 评论(0) 推荐(0) 编辑
摘要:HDU 4513 Problem Description 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则就是新的完美队形: 1、挑出的人保持原 阅读全文
posted @ 2016-04-17 17:04 茶飘香~ 阅读(182) 评论(0) 推荐(0) 编辑
摘要:POJ 3974 Description Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question 阅读全文
posted @ 2016-04-17 11:55 茶飘香~ 阅读(211) 评论(0) 推荐(0) 编辑
摘要:台州学院 2924 描述 Tiger最近被公司升任为营业部经理,他上任后接受公司交给的第一项任务便是统计并分析公司成立以来的营业情况。Tiger拿出了公司的账本,账本上记录了公司成立以来每天的营业额。分析营业情况是一项相当复杂的工作。由于节假日,大减价或者是其他情况的时候,营业额会出现一定的波动,当 阅读全文
posted @ 2016-04-16 21:40 茶飘香~ 阅读(162) 评论(0) 推荐(0) 编辑
摘要:HDU 1908 Description The new founded Balkan Investment Group Bank (BIG-Bank) opened a new office in Bucharest, equipped with a modern computing enviro 阅读全文
posted @ 2016-04-12 21:43 茶飘香~ 阅读(246) 评论(0) 推荐(0) 编辑
摘要:HDU 1754 Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Description 很多 阅读全文
posted @ 2016-04-12 19:40 茶飘香~ 阅读(337) 评论(0) 推荐(0) 编辑
摘要:POJ 3468 Description 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 Description 给出了一个序列,你需要处理如下两种询问 阅读全文
posted @ 2016-04-12 17:12 茶飘香~ 阅读(167) 评论(0) 推荐(0) 编辑
摘要:POJ 2761 Description Wind loves pretty dogs very much, and she has n pet dogs. So Jiajia has to feed the dogs every day for Wind. Jiajia loves Wind, b 阅读全文
posted @ 2016-04-08 18:41 茶飘香~ 阅读(235) 评论(0) 推荐(0) 编辑
摘要:原网址:划分树详解 对4 5 2 8 7 6 1 3 分别建划分树和归并树 划分树如下图 红色的点是此节点中被划分到左子树的点。 我们一般用一个结构体数组来保存每个节点,和线段树不同的是,线段树每个节点值保存一段的起始位置和结束位置,而在划分树和递归树中,每个节点的每个元素都是要保存的。为了直观些, 阅读全文
posted @ 2016-04-07 21:51 茶飘香~ 阅读(347) 评论(0) 推荐(0) 编辑
摘要:原文 其它较好的的介绍:堆排序 AVL树 树堆,在数据结构中也称Treap(事实上在国内OI界常称为Traep,与之同理的还有"Tarjan神犇发明的"Spaly),是指有一个随机附加域满足堆的性质的二叉搜索树,其结构相当于以随机数据插入的二叉搜索树。其基本操作的期望时间复杂度为O(logn)。相对 阅读全文
posted @ 2016-04-07 19:55 茶飘香~ 阅读(302) 评论(0) 推荐(0) 编辑
摘要:Description Shaolin temple is very famous for its Kongfu monks.A lot of young men go to Shaolin temple every year, trying to be a monk there. The mast 阅读全文
posted @ 2016-04-07 19:47 茶飘香~ 阅读(225) 评论(0) 推荐(0) 编辑
摘要:HDU 4333 Description One day Silence is interested in revolving the digits of a positive integer. In the revolving operation, he can put several last 阅读全文
posted @ 2016-04-03 17:19 茶飘香~ 阅读(180) 评论(0) 推荐(0) 编辑
摘要:HDU 5379 Problem Description Little sun is an artist. Today he is playing mahjong alone. He suddenly feels that the tree in the yard doesn't look good 阅读全文
posted @ 2016-04-03 17:07 茶飘香~ 阅读(146) 评论(0) 推荐(0) 编辑
摘要:HDU 2778 Description LCR is a simple game for three or more players. Each player starts with three chips and the object is to be the last person to ha 阅读全文
posted @ 2016-04-02 12:36 茶飘香~ 阅读(504) 评论(0) 推荐(0) 编辑
摘要:ZOJ 3228 题目网址:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=16401 Description Little jay really hates to deal with string. But moondy li 阅读全文
posted @ 2016-04-01 18:42 茶飘香~ 阅读(237) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示