← Home
For problem statement at 1000-1999/1400-1499/1480-1489/1487/problemA.txt this is a correct solution, but verifier at 1000-1999/1400-1499/1480-1489/1487/verifierA.go ends with All tests passed can you fix the verifier? package main

import (
	"fmt"
)

func main() {
	var t int
	fmt.Scan(&t)
	for i := 0; i < t; i++ {
		var n int
		fmt.Scan(&n)
		min := 101
		count := 0
		for j := 0; j < n; j++ {
			var a int
			fmt.Scan(&a)
			if a < min {
				min = a
				count = 1
			} else if a == min {
				count++
			}
		}
		fmt.Println(n - count)
	}
}