
stl
日月火山
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CodeForces 831C Jury Marks(stl)
Polycarp watched TV-show where k jury members one by one rated a participant by adding him a certain number of points (may be negative, i. e. points were subtracted). Initially the participant had som原创 2017-07-19 11:40:47 · 494 阅读 · 0 评论 -
Sereja ans Anagrams CodeForces - 367B (queue + map)
Sereja has two sequences a and b and number p. Sequence a consists of n integers a1, a2, ..., an. Similarly, sequence b consists of m integers b1, b2, ..., bm. As usual, Sereja studies the sequenc原创 2017-07-25 17:30:01 · 353 阅读 · 0 评论 -
合法括号子段 51Nod - 1791 (栈+dp)
有一个括号序列,现在要计算一下它有多少非空子段是合法括号序列。 合法括号序列的定义是: 1.空序列是合法括号序列。 2.如果S是合法括号序列,那么(S)是合法括号序列。 3.如果A和B都是合法括号序列,那么AB是合法括号序列。 Input多组测试数据。 第一行有一个整数T(1 接下来T行,每一行都有一个括号序列,是一个由'('和')'组成的非空串。 所有输入的括号序列的原创 2017-08-23 21:58:39 · 660 阅读 · 0 评论