For problem statement at 1000-1999/1400-1499/1400-1409/1400/problemA.txt this is a correct solution, but verifier at 1000-1999/1400-1499/1400-1409/1400/verifierA.go ends with All 100 tests passed can you fix the verifier? package main
import (
"bufio"
"bytes"
"fmt"
"os"
"strings"
)
func main() {
in := bufio.NewReader(os.Stdin)
var out bytes.Buffer
var t int
fmt.Fscan(in, &t)
for ; t > 0; t-- {
var n int
var s string
fmt.Fscan(in, &n, &s)
cnt0 := 0
for i := 0; i < len(s); i++ {
if s[i] == '0' {
cnt0++
}
}
ch := '1'
if cnt0 >= n {
ch = '0'
}
out.WriteString(strings.Repeat(string(ch), n))
if t > 0 {
out.WriteByte('\n')
}
}
fmt.Print(out.String())
}