Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < sz - 1; i++) {
- if(a[i] == '(' && a[i+1] == '(') {
- int cnt2 = 0;
- for(int j = sz; j > 1; j--) {
- if(a[j] == ')' && a[j-1] == ')') {
- cnt2++;
- }
- }
- cnt1 += cnt2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment