#1103

BZOJ1103 [POI2007]大都市meg dfs序 线段树

  一棵树上,一开始所有的边权值为1,我们要支持两种操作:  1. 修改某一条边的权值为0  2. 询问根节点到某一节点的路径权值和   前置技能-dfs序相关  然后差不多你就会了。  dfs序+线段树搞定了。 #include<cstring>#include<algorith...

Vijos P1103 校门外的树【线段树,模拟】

某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。由于马路上有一些区域要用来建地铁。这些区域用它们在数轴上的起始点和终止点表示。已知任一区域的...

UVA 11039-Building designing【贪心+绝对值排序】

Timelimit:3.000secondsAnarchitectwantstodesignaveryhighbuilding.Thebuildingwillconsistofsomefloors,andeachfloorhasacertainsize.Thesizeofafloormustbegreaterthanthes...

ORA-01103: database name ‘DB01’ in control file is not ‘DBDG’

Thedatabasenameinthecontrolfiledoesnotmatchyourdatabasename.Eitherfindthecorrectcontrolfileorchangeyourdatabasename.ThiswillbetheerrormessageSQL>STARTUPORACL...

1103. Integer Factorization (30)

TheK-PfactorizationofapositiveintegerNistowriteNasthesumoftheP-thpowerofKpositiveintegers.YouaresupposedtowriteaprogramtofindtheK-PfactorizationofNforanypositiv...
代码星球 ·2020-04-08
首页上一页12下一页尾页