← Home
For problem statement at 1000-1999/1300-1399/1360-1369/1369/problemB.txt this is a correct solution, but verifier at 1000-1999/1300-1399/1360-1369/1369/verifierB.go ends with All tests passed can you fix the verifier? ```go
package main

import (
	"bufio"
	"fmt"
	"os"
	"strings"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanLines)
	
	scanner.Scan()
	t := 0
	fmt.Sscanf(scanner.Text(), "%d", &t)
	
	for i := 0; i < t; i++ {
		scanner.Scan()
		scanner.Scan()
		s := scanner.Text()
		
		first1 := strings.Index(s, "1")
		last0 := strings.LastIndex(s, "0")
		
		if first1 == -1 || last0 == -1 || first1 > last0 {
			fmt.Println(s)
		} else {
			fmt.Println(s[:first1] + "0" + s[last0+1:])
		}
	}
}
```