← Home
For problem statement at 0-999/0-99/70-79/74/problemA.txt this is a correct solution, but verifier at 0-999/0-99/70-79/74/verifierA.go ends with All tests passed can you fix the verifier? package main

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

func main() {
	in := bufio.NewReader(os.Stdin)

	var n int
	fmt.Fscan(in, &n)

	bestScore := -1 << 60
	bestHandle := ""

	for i := 0; i < n; i++ {
		var handle string
		var plus, minus int
		var a, b, c, d, e int
		fmt.Fscan(in, &handle, &plus, &minus, &a, &b, &c, &d, &e)
		score := a + b + c + d + e + 100*plus - 50*minus
		if score > bestScore {
			bestScore = score
			bestHandle = handle
		}
	}

	fmt.Println(bestHandle)
}