← Home
For problem statement at 0-999/700-799/700-709/701/problemC.txt this is a correct solution, but verifier at 0-999/700-799/700-709/701/verifierC.go ends with All tests passed can you fix the verifier?  ```go
package main

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

func main() {
	reader := bufio.NewReader(os.Stdin)
	var n int
	var s string

	fmt.Fscan(reader, &n)
	fmt.Fscan(reader, &s)

	distinct := 0
	exists := make([]bool, 128)
	for i := 0; i < n; i++ {
		c := s[i]
		if !exists[c] {
			exists[c] = true
			distinct++
		}
	}

	count := make([]int, 128)
	current := 0
	minLen := n + 1
	left := 0

	for right := 0; right < n; right++ {
		c := s[right]
		count[c]++
		if count[c] == 1 {
			current++
		}

		for current == distinct {
			if right-left+1 < minLen {
				minLen = right - left + 1
			}
			leftC := s[left]
			count[leftC]--
			if count[leftC] == 0 {
				current--
			}
			left++
		}
	}

	fmt.Println(minLen)
}
```