cf/mirror

Serval and Parenthesis Sequence

CF
1153C1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6
(?????
Output
(()())
Sample 2of 2
Input
10
(???(???(?
Output
:(
1153C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)