cf/mirror

Bracket Sequences Concatenation Problem

CF
990C1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
)
()
(
Output
2
Sample 2of 2
Input
2
()
()
Output
4
990C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)