← Home
For problem statement at 1000-1999/1200-1299/1280-1289/1281/problemA.txt this is a correct solution, but verifier at 1000-1999/1200-1299/1280-1289/1281/verifierA.go ends with All tests passed. can you fix the verifier? package main

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

func main() {
	in := bufio.NewReader(os.Stdin)
	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

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

	for i := 0; i < t; i++ {
		var s string
		fmt.Fscan(in, &s)

		if strings.HasSuffix(s, "po") {
			fmt.Fprintln(out, "FILIPINO")
		} else if strings.HasSuffix(s, "desu") || strings.HasSuffix(s, "masu") {
			fmt.Fprintln(out, "JAPANESE")
		} else {
			fmt.Fprintln(out, "KOREAN")
		}
	}
}