← Home
For problem statement at 0-999/200-299/280-289/282/problemA.txt this is a correct solution, but verifier at 0-999/200-299/280-289/282/verifierA.go ends with All 100 tests passed can you fix the verifier? ```go
package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	in := bufio.NewReader(os.Stdin)

	var n int
	fmt.Fscan(in, &n)

	x := 0
	for i := 0; i < n; i++ {
		var s string
		fmt.Fscan(in, &s)
		if len(s) >= 2 && s[0] == '+' && s[1] == '+' || len(s) >= 3 && s[1] == '+' && s[2] == '+' {
			x++
		} else {
			x--
		}
	}

	fmt.Print(x)
}
```