← Home
For problem statement at 0-999/900-999/910-919/914/problemB.txt this is a correct solution, but verifier at 0-999/900-999/910-919/914/verifierB.go ends with All tests passed can you fix the verifier? package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanWords)
	if !scanner.Scan() {
		return
	}

	counts := make(map[int]int)
	for scanner.Scan() {
		val, _ := strconv.Atoi(scanner.Text())
		counts[val]++
	}

	for _, count := range counts {
		if count%2 != 0 {
			fmt.Println("Conan")
			return
		}
	}
	fmt.Println("Agasa")
}