Cost of a Bracket Sequence
2233C1400· specialist2s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
102 1)(2 0()4 1(())4 1())(5 1((())6 2()()()6 2(()())6 2())(()7 3(()((()10 3(()())())(
Output
0000100010000001010100000100110000111000010101001000
58%
2233C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)