For problem statement at 0-999/100-199/110-119/116/problemA.txt this is a correct solution, but verifier at 0-999/100-199/110-119/116/verifierA.go ends with All 100 tests passed can you fix the verifier? package main
import (
"fmt"
)
func main() {
var n int
fmt.Scan(&n)
maxCapacity := 0
current := 0
for i := 0; i < n; i++ {
var a, b int
fmt.Scan(&a, &b)
current -= a
current += b
if current > maxCapacity {
maxCapacity = current
}
}
fmt.Println(maxCapacity)
}