For problem statement at 0-999/400-499/410-419/413/problemA.txt this is a correct solution, but verifier at 0-999/400-499/410-419/413/verifierA.go ends with All 100 tests passed can you fix the verifier? package main
import (
"fmt"
)
func main() {
var n, m, min, max int
if _, err := fmt.Scan(&n, &m, &min, &max); err != nil {
return
}
valid := true
hasMin := false
hasMax := false
for i := 0; i < m; i++ {
var t int
fmt.Scan(&t)
if t < min || t > max {
valid = false
}
if t == min {
hasMin = true
}
if t == max {
hasMax = true
}
}
if !valid {
fmt.Println("Incorrect")
return
}
needed := 0
if !hasMin {
needed++
}
if !hasMax {
needed++
}
if needed <= n-m {
fmt.Println("Correct")
} else {
fmt.Println("Incorrect")
}
}