51
Dev开发社区
首页
文章
问答
工具
搜索
登录
注册
#1103
BZOJ1103 [POI2007]大都市meg dfs序 线段树
一棵树上,一开始所有的边权值为1,我们要支持两种操作: 1. 修改某一条边的权值为0 2. 询问根节点到某一节点的路径权值和 前置技能-dfs序相关 然后差不多你就会了。 dfs序+线段树搞定了。 #include<cstring>#include<algorith...
代码星球
·
2020-07-14
BZOJ1103
POI2007
大都市
meg
dfs
Vijos P1103 校门外的树【线段树,模拟】
某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。由于马路上有一些区域要用来建地铁。这些区域用它们在数轴上的起始点和终止点表示。已知任一区域的...
代码星球
·
2020-06-15
Vijos
P1103
门外
线段
模拟
UVA 11039-Building designing【贪心+绝对值排序】
Timelimit:3.000secondsAnarchitectwantstodesignaveryhighbuilding.Thebuildingwillconsistofsomefloors,andeachfloorhasacertainsize.Thesizeofafloormustbegreaterthanthes...
代码星球
·
2020-05-11
UVA
11039-Building
designing
贪心
绝对值
ORA-01103: database name ‘DB01’ in control file is not ‘DBDG’
Thedatabasenameinthecontrolfiledoesnotmatchyourdatabasename.Eitherfindthecorrectcontrolfileorchangeyourdatabasename.ThiswillbetheerrormessageSQL>STARTUPORACL...
代码星球
·
2020-04-15
ORA-01103
database
name
DB01
in
1103. Integer Factorization (30)
TheK-PfactorizationofapositiveintegerNistowriteNasthesumoftheP-thpowerofKpositiveintegers.YouaresupposedtowriteaprogramtofindtheK-PfactorizationofNforanypositiv...
代码星球
·
2020-04-08
1103.
Integer
Factorization
首页
上一页
1
2
下一页
尾页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他