← Home
For problem statement at 0-999/300-399/370-379/372/problemA.txt this is a correct solution, but verifier at 0-999/300-399/370-379/372/verifierA.go ends with All 100 tests passed can you fix the verifier? ```go
package main

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

func main() {
	in := bufio.NewReaderSize(os.Stdin, 1<<20)
	var n int
	fmt.Fscan(in, &n)
	a := make([]int, n)
	for i := 0; i < n; i++ {
		fmt.Fscan(in, &a[i])
	}
	sort.Ints(a)

	i := 0
	j := (n + 1) / 2
	pairs := 0
	for i < (n+1)/2 && j < n {
		if a[j] >= 2*a[i] {
			pairs++
			i++
			j++
		} else {
			j++
		}
	}
	fmt.Print(n - pairs)
}
```