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

import (
	"fmt"
	"strings"
)

func main() {
	var s string
	fmt.Scan(&s)
	p := strings.Count(s, "o")
	if p == 0 || len(s)%p == 0 {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}