#D4309. Parentheses
Parentheses
Parentheses
Example
Input
3 ()(()(( ))()()(() )())(())
Output
Yes
inputFormat
Input
3 ()(()(( ))()()(() )())(())
outputFormat
Output
Yes
样例
3
()(()((
))()()(()
)())(())
Yes
Example
Input
3 ()(()(( ))()()(() )())(())
Output
Yes
Input
3 ()(()(( ))()()(() )())(())
Output
Yes
3
()(()((
))()()(()
)())(())
Yes
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.