← Home
For problem statement at 1000-1999/1300-1399/1370-1379/1374/problemC.txt this is a correct solution, but verifier at 1000-1999/1300-1399/1370-1379/1374/verifierC.go ends with All 100 tests passed can you fix the verifier? ```go
package main

import "fmt"

func main() {
	var t int
	fmt.Scan(&t)
	for range make([]int, t) {
		var n int
		fmt.Scan(&n)
		var s string
		fmt.Scan(&s)
		bal := 0
		minbal := 0
		for _, c := range s {
			if c == '(' {
				bal++
			} else {
				bal--
			}
			if bal < minbal {
				minbal = bal
			}
		}
		fmt.Println(-minbal)
	}
}
```