For problem statement at 1000-1999/1200-1299/1200-1209/1204/problemA.txt this is a correct solution, but verifier at 1000-1999/1200-1299/1200-1209/1204/verifierA.go ends with All tests passed can you fix the verifier? package main
import (
"bufio"
"fmt"
"os"
)
func main() {
in := bufio.NewReader(os.Stdin)
var s string
fmt.Fscan(in, &s)
if s == "0" {
fmt.Println(0)
return
}
L := len(s)
ones := 0
for i := 0; i < L; i++ {
if s[i] == '1' {
ones++
}
}
if ones == 1 {
fmt.Println(L / 2)
} else {
fmt.Println((L + 1) / 2)
}
}