← Home
For problem statement at 0-999/200-299/290-299/290/problemC.txt this is a correct solution, but verifier at 0-999/200-299/290-299/290/verifierC.go ends with wrong answer on test 1 expected 36.00000 got 26.2000000000
exit status 1 can you fix the verifier? package main

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

func main() {
	in := bufio.NewReader(os.Stdin)
	var x int
	sum := 0.0
	count := 0.0

	for {
		_, err := fmt.Fscan(in, &x)
		if err != nil {
			break
		}
		sum += float64(x)
		count++
	}

	fmt.Printf("%.10f\n", sum/count)
}