线段树
Dickwyz
这个作者很懒,什么都没留下…
展开
-
Codeforces 1263E.Editor
cf 1263E. EditorProblem Description传送门题意给你一段序列,其中L代表左移,R代表右移,小写字母代表在当前位置放置对应字母,),(代表在当前位置放置左右括号,当括号可以匹配时输出括号的最大层数,否则输出-1题解小写字母是无意义的操作当(时我们在序列当前位置加1,)我们在当前位置减1。如此最大层数就是序列前缀和的最大值,括号能否匹配取决于前缀和最小的...原创 2019-11-30 11:54:37 · 301 阅读 · 0 评论 -
HDU6039 Gear Up
Problem Descriptionconstroy has some gears, whose radii may vary. Two gears may be adjacent due to one of the following conditions:they mesh together, which causes them to have equal linear velocit...原创 2019-10-06 23:20:12 · 241 阅读 · 1 评论 -
HDU6406 Taotao Picks Apples
Problem DescriptionThere is an apple tree in front of Taotao’s house. When autumn comes, n apples on the tree ripen, and Taotao will go to pick these apples.When Taotao picks apples, Taotao scans t...原创 2019-10-06 23:21:11 · 213 阅读 · 0 评论