cf/mirror

Regular Bracket Sequence

CF
1469A1000· newbie1s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
()
(?)
(??)
??()
)?(?
Output
YES
NO
YES
YES
NO
1469A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)