← Home
For problem statement at 0-999/500-599/550-559/557/problemB.txt this is a correct solution, but verifier at 0-999/500-599/550-559/557/verifierB.go ends with All tests passed can you fix the verifier? ```go
package main

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

func main() {
	reader := bufio.NewReader(os.Stdin)
	var n int
	var w float64
	fmt.Fscan(reader, &n, &w)

	a := make([]int, 2*n)
	for i := 0; i < 2*n; i++ {
		fmt.Fscan(reader, &a[i])
	}

	sort.Ints(a)

	x := math.Min(float64(a[0]), float64(a[n])/2.0)
	ans := math.Min(w, x*3.0*float64(n))

	fmt.Printf("%.10f", ans)
}
```