← Home
For problem statement at 1000-1999/1100-1199/1180-1189/1189/problemA.txt this is a correct solution, but verifier at 1000-1999/1100-1199/1180-1189/1189/verifierA.go ends with All 100 tests passed can you fix the verifier? package main

import (
	"fmt"
	"strings"
)

func main() {
	var n int
	var s string
	fmt.Scan(&n, &s)
	if strings.Count(s, "0") != strings.Count(s, "1") {
		fmt.Println(1)
		fmt.Println(s)
	} else {
		fmt.Println(2)
		fmt.Println(s[:1], s[1:])
	}
}