ZX_zengxi
码龄7年
关注
提问 私信
  • 博客:25,888
    25,888
    总访问量
  • 44
    原创
  • 1,576,084
    排名
  • 13
    粉丝
  • 0
    铁粉

个人简介:哈哈

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2017-06-18
博客简介:

reset的博客

查看详细资料
个人成就
  • 获得42次点赞
  • 内容获得11次评论
  • 获得12次收藏
创作历程
  • 44篇
    2017年
成就勋章
TA的专栏
  • 强化学习
  • ---ACM------
  • 单调栈
    2篇
  • 思维题
    8篇
  • 水题
    4篇
  • 优先队列
    2篇
  • 搜索
    6篇
  • 二分
    1篇
  • 并查集
    3篇
  • 最短路径
    2篇
  • SPFA判负环
    1篇
  • 树状数组
    2篇
  • 线段树
    4篇
  • 01背包
    1篇
  • 完全背包
  • 多重背包
    1篇
  • 最长上升子序列
    2篇
  • 区间dp
    1篇
  • dp
    1篇
  • 数论
    2篇
  • 数位dp
    1篇
  • KMP
    1篇
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

342人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Gluttony(codeforce-891B)

D. Gluttonytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a with n distinct inte
原创
发布博客 2017.11.18 ·
765 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

White, Black and White Again )(CodeForces - 306C)

White, Black and White AgainPolycarpus is sure that his life fits the description: "first there is a white stripe, then a black one, then a white one again". So, Polycarpus is sure that this rule is going to fulfill during the next n days. Polycarpus know
原创
发布博客 2017.11.08 ·
512 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

uva-1198

Let G = (V,E) be a connected graph without loops and multiple edges, where V and E are the vertex and edge, respectively, sets of G. For any two vertices u, v ∈ V ,the distance between vertices u and v in G is the number of edges in a shortest u-v path. A
原创
发布博客 2017.09.13 ·
442 阅读 ·
2 点赞 ·
0 评论 ·
0 收藏

HDU - 1711(Number Sequence )(KMP)

Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] = b[1], a[K + 1] = b[2], ...... , a[K + M - 1] = b[M]. If th
原创
发布博客 2017.09.13 ·
355 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

hdu 4734 【数位DP】

Problem DescriptionFor a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 + ... + A2 * 2 + A1 * 1. Now you are given two numbers A and B, please calculate how many numbers are there between 0 and
原创
发布博客 2017.09.13 ·
370 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

选择子序列(51nod-1153)

长度为N的整数数组A,所有的数均不相同,假设下标从0开始。找到一个最长的数组B,B数组的长度为K,数值范围是0 - N - 1,记录的是A数组的下标。满足A[B[0]] > A[B[1]] > A[B[2]] >...A[B[K]],并且对任意连续的两项B[i]及B[i + 1],满足min(B[i],B[i + 1]) < j < max(B[i],B[i + 1]) 均有A[j] < A[B[i + 1]] ,求最大的K。例如:9, 10, 2, -1, 3, -5, 0, -3, 1, 12, 5,
原创
发布博客 2017.09.07 ·
461 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Planning(贪心)

Helen works in Metropolis airport. She is responsible for creating a departure schedule. There are n flights that must depart today, the i-th of them is planned to depart at the i-th minute of the day.Metropolis airport is the main transport hub of Metro
原创
发布博客 2017.09.07 ·
715 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

Prime Number(CodeForces - 359C )

Simon has a prime number x and an array of non-negative integers a1, a2, ..., an.Simon loves fractions very much. Today he wrote out number on a piece of paper. After Simon led all fractions to a common denominator and summed them up, he got a fraction:
原创
发布博客 2017.08.30 ·
439 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

食物链(poj-1182)(带权并查集)

动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种说法是"2 X Y",表示X吃Y。 此人对N个动物,用上述两种说法,一句接一句地说出K句话,这K句话有的是真的,有的是假的。当一句话满足下列三条之一时,这句话就是假话,否则就是真话。 1) 当前的话与
原创
发布博客 2017.08.26 ·
340 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Zjnu Stadium(hdu-3047)(带权并查集)

In 12th Zhejiang College Students Games 2007, there was a new stadium built in Zhejiang Normal University. It was a modern stadium which could hold thousands of people. The audience Seats made a circle. The total number of columns were 300 numbered 1--300,
原创
发布博客 2017.08.26 ·
394 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

子序列个数(51nod-1202)(dp)

子序列的定义:对于一个序列a=a[1],a[2],......a[n]。则非空序列a'=a[p1],a[p2]......a[pm]为a的一个子序列,其中1<=p1<p2<.....<pm<=n。例如4,14,2,3和14,1,2,3都为4,13,14,1,2,3的子序列。对于给出序列a,有些子序列可能是相同的,这里只算做1个,请输出a的不同子序列的数量。由于答案比较大,输出Mod 10^9 + 7的结果即可。
原创
发布博客 2017.08.20 ·
277 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Brackets(poj-2955)(区间dp)

BracketsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8762 Accepted: 4690DescriptionWe give the following inductive definition of a “regular bracket
原创
发布博客 2017.08.16 ·
289 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

NYOJ 石子合并(一)经典区间DP

石子合并(一)时间限制:1000 ms  |  内存限制:65535 KB难度:3描述    有N堆石子排成一排,每堆石子有一定的数量。现要将N堆石子并成为一堆。合并的过程只能每次将相邻的两堆石子堆成一堆,每次合并花费的代价为这两堆石子的和,经过N-1次合并后成为一堆。求出总的代价最小值。输入有多组测试数据,输入到文件结束。每组测试数据第一行有一个整
原创
发布博客 2017.08.16 ·
308 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

A序列(最长上升子序列)

如果一个序列有奇数个正整数组成,不妨令此序列为a1,a2,a3,...,a2∗k+1(0<=k),并且a1,a2...ak+1是一个严格递增的序列,ak+1,ak+2,...,a2∗k+1,是一个严格递减的序列,则称此序列是A序列。比如1 2 5 4 3就是一个A序列。现在Jazz有一个长度为n的数组,他希望让你求出这个数组所有满足A序列定义的子序列里面最大的那个长度。(子序列可以不连续)比如1 2 5 4 3 6 7 8 9,最长的A序列子串是1 2 5 4 3。
原创
发布博客 2017.08.15 ·
519 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

最少拦截系统(hdu-1257)(最长上升子序列)

某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹.怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求救了,请帮助计算一下最少需要多少套拦截系统.
原创
发布博客 2017.08.15 ·
309 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Cash Machine(poj-1276)(多重背包)

A Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash amount. The machine uses exactly N distinct bill denominations, say Dk, k=1,N, and for each denomination Dk the machine has a sup
原创
发布博客 2017.08.15 ·
382 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Piggy-Bank(hdu-1114)(完全背包)

Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea behind is simple. Whenever some ACM member has any small money, he takes
原创
发布博客 2017.08.15 ·
324 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

饭卡(hdu-2546)(01背包)

饭卡电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。
原创
发布博客 2017.08.15 ·
279 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Matrix (POJ - 2155 )(树状数组的区间更新-点查询)

Matrix (POJ - 2155 )Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, j] = 0 (1 <= i, j <= N). We can change the matrix in the following way. Given a rectangle whose
原创
发布博客 2017.08.09 ·
258 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Can you answer these queries? (HDU - 4027)(线段树区间更新-区间查询)

Can you answer these queries? (HDU - 4027)A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships. Each of the battleships can be marked a value of endurance. For ev
原创
发布博客 2017.08.09 ·
454 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏
加载更多