#D3395. Balanced Paths
Balanced Paths
Balanced Paths
Example
Input
2 () 1 2
Output
1
inputFormat
Input
2 () 1 2
outputFormat
Output
1
样例
2
()
1 2
1
Example
Input
2 () 1 2
Output
1
Input
2 () 1 2
Output
1
2
()
1 2
1
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.