发表评论取消回复
相关阅读
相关 hdu5692(dfs序+线段树 )Snacks
<table style="font-family:'Times New Roman'; word-wrap:break-word"> <tbody>
相关 Codeforces 1192B 全dfs序 + 线段树
题意:给你一颗树,每次会修改一条边的边权,问修改之后的树的直径是多少? 思路:来源于:[https://www.cnblogs.com/TinyWong/p/11260601
相关 CodeForces 626B-Cards【DFS】
B. Cards time limit per test 2 seconds memory limit per test 256 megabytes input s
相关 codeforces 482B. Interesting Array【线段树区间更新】
题目:[codeforces 482B. Interesting Array][] 题意:给你一个值n和m中操作,每种操作就是三个数 l ,r,val。就是区间l-
相关 【线段树+dfs序】J - Assign the task HDU - 3974
Think: 1知识点:线段树+dfs序 2题意:输入一棵关系树,两种操作,C操作(查询结点x正在进行的工作(初始工作默认为-1)),T操作(结点x及其下属开始进行y工
相关 CodeForces 825B(DFS)
问题描述: Alice and Bob play 5-in-a-row game. They have a playing field of size 10 × 10. In
相关 CodeForces 315B(线段树+区间更新)
问题描述: Sereja has got an array, consisting of n integers, a1, a2, ..., an. Sereja is an
相关 codeforces 1044F DFS dfs序+线段树
题意:给一颗初始树,然后有q次操作,每次操作一对点,如果这对点有边,就删除边(保证不删除初始的树边),否则,就加一条边,接下来你可以从某个点dfs搜索,如果搜索出来的边和初始
相关 Codeforces 343D 线段树
题意:给你一颗以点1为根的数,有两种操作,一种是把x及其子树的所有点都灌满水,一种是把x及其所有祖先都放空水,一种是询问,问某个点里有没有水? 思路:看网上大多数是树剖,但实
相关 CodeForces 482B. Interesting Array(线段树)
题意:构造出一个序列,满足下面m个要求:每一个要求的组成是l,r,q三个数,表示从a\[l\]&a\[l+1\]....&a\[r\]的值为q,问能不能构造出这样的序列。
还没有评论,来说两句吧...