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

import (
	"fmt"
	"strings"
)

func main() {
	var n int
	fmt.Scan(&n)
	var s string
	fmt.Scan(&s)

	if s == "0" {
		fmt.Println("0")
		return
	}

	zeros := strings.Count(s, "0")
	fmt.Print("1")
	fmt.Println(strings.Repeat("0", zeros))
}