Live2d Test Env
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 101 下一页
摘要: http://blog.csdn.net/ACdreamers/article/details/25049767 https://www.cnblogs.com/liuweimingcprogram/p/5877411.html 做此题的时候遇到这么个东西,感觉挺有意思的,先把此题做了再回来填坑。 阅读全文
posted @ 2018-01-16 17:16 nimphy 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1,poj 1151 Atlantis: 求矩形面积并。 2,poj 1177 Picture: 求矩形轮廓的周长。 3,poj 1389 Area of Simple Polygons :同第一题。 4,poj 1823 Hotel :线段树线段的插入删除求线段树中最长的线段长度 5,poj 21 阅读全文
posted @ 2018-01-16 12:40 nimphy 阅读(366) 评论(0) 推荐(0) 编辑
摘要: You are given a tree with N nodes. The tree nodes are numbered from 1 to N. Each node has an integer weight. We will ask you to perform the following 阅读全文
posted @ 2018-01-15 10:25 nimphy 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 我们在用二维树状数组的时候,可以得到一个边与坐标轴平行的矩形内点集的信息。 如果我们需要得到得到到一个点的距离小于等于K的点的信息呢。这些点构成的不在是边也坐标轴平行的矩形,而是一个对角线与坐标轴平行的菱形。 可以通过转化,使得整个坐标轴旋转45°,然后我们菱形变成了方方正正的矩形,又可以用而二维树 阅读全文
posted @ 2018-01-13 10:57 nimphy 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 树上的有些问题是可以用树剖或者动态树解决的,但是他们有一个动同点就是:不连通。 比如求u到v的路径权值和,或者最大值: u到v可能对应了多个链,这多个链在对应的数据结构(假设是线段树)上面对应不同的区间。但是线段树上这几个区间的不连续并不影响我们得到答案。 (当然求子树的信息话是连续区间) 那么如果 阅读全文
posted @ 2018-01-12 13:27 nimphy 阅读(3649) 评论(0) 推荐(1) 编辑
摘要: 给定一棵N个节点的树,编号1~N。其中1号节点是根,并且第i个节点的权值是Vi。 针对这棵树,小Hi会询问小Ho一系列问题。每次小Hi会指定一个节点x,询问小Ho以x为根的子树中,最小的权值是多少。为了增加难度,小Hi可能随时改变其中每个节点的权值。 你能帮助小Ho准确、快速的回答小Hi的问题吗? 阅读全文
posted @ 2018-01-10 21:04 nimphy 阅读(432) 评论(0) 推荐(0) 编辑
摘要: You are given a sequence A[1], A[2], ..., A[N]. (0 ≤ A[i] < 231, 1 ≤ N ≤ 12000). A query is defined as follows: Query(x,y) = Max { a[i] xor a[i+1] xor 阅读全文
posted @ 2018-01-10 11:31 nimphy 阅读(445) 评论(1) 推荐(0) 编辑
摘要: In an edge-weighted tree, the xor-length of a path p is defined as the xor sum of the weights of edges on p: ⊕ is the xor operator. We say a path the 阅读全文
posted @ 2018-01-09 16:33 nimphy 阅读(564) 评论(0) 推荐(1) 编辑
摘要: 一:解决XOR常用的方法: 在vjudge上面输入关键词xor,然后按照顺序刷了一些题。 然后大概悟出了一些的的套路: 我是分界线 POJ 3764: The xor-longest 字典树求最大异或 POJ 3764: The xor-longest 字典树求最大异或 #include<cmath 阅读全文
posted @ 2018-01-08 21:47 nimphy 阅读(594) 评论(0) 推荐(0) 编辑
摘要: Zeus 和 Prometheus 做了一个游戏,Prometheus 给 Zeus 一个集合,集合中包含了N个正整数,随后 Prometheus 将向 Zeus 发起M次询问,每次询问中包含一个正整数 S ,之后 Zeus 需要在集合当中找出一个正整数 K ,使得 K 与 S 的异或结果最大。Pr 阅读全文
posted @ 2018-01-08 20:53 nimphy 阅读(555) 评论(0) 推荐(0) 编辑
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 101 下一页