package main import . "fmt" func main() { var c [14]int for { var a int Scan(&a) if a<1 { break } c[a]++ } var d [6]int for _,v:=range c[:] { d[v]++ } s:="NO HAND" switch d[2]*10+d[3]{ case 20: s="TWO PAIR" case 11: s="FULL HOUSE" case 1: s="THREE CARD" case 10: s="ONE PAIR" } Println(s) }