380c专题

Codeforces 380C - Sereja and Brackets (线段树括号匹配)

C. Sereja and Brackets time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Sereja has a bracket sequence s1, s2, ..., sn,