#D7020. Flipping Parentheses
Flipping Parentheses
Flipping Parentheses
Example
Input
6 3 ((())) 4 3 1
Output
2 2 1
inputFormat
Input
6 3 ((())) 4 3 1
outputFormat
Output
2 2 1
样例
6 3
((()))
4
3
1
2
2
1
</p>
Example
Input
6 3 ((())) 4 3 1
Output
2 2 1
Input
6 3 ((())) 4 3 1
Output
2 2 1
6 3
((()))
4
3
1
2
2
1
</p>
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.