cf/mirror

Invertible Bracket Sequences

CF
1976D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
(())
()
()()()
(()())(())
Output
1
0
3
13
1976D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)