Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for scanner.Scan() {
		input := strings.Split(scanner.Text(), ",")
		cards := make([]int, 5)
		for i :=range input {
			cards[i], _ = strconv.Atoi(input[i])
		}
		sort.Sort(sort.IntSlice(cards))
		if cards[0] == cards[1] && cards[2] == cards[3] && cards[2] == cards[1] {
			fmt.Println("four card")
		} else if cards[1] == cards[2] && cards[3] == cards[4] && cards[3] == cards[2]{
			fmt.Println("four card")
		} else if cards[0] == cards[1] && cards[1] == cards[2] && cards[3] == cards[4] {
			fmt.Println("full house")
		} else if cards[0] == cards[1] && cards[2] == cards[3] && cards[3] == cards[4] {
			fmt.Println("full house")
		} else if cards[0] == 1 && cards[1] == 10 && cards[2] == 11 && cards[3] == 12 && cards[4] == 13 {
			fmt.Println("straight")
		} else if cards[0]+1 == cards[1] && cards[1]+1 == cards[2] && cards[2]+1 == cards[3] && cards[3]+1 == cards[4] {
			fmt.Println("straight")
		} else if (cards[0] == cards[1] && cards[1] == cards[2]) || (cards[1] == cards[2] && cards[2] == cards[3]) || (cards[2] == cards[3] && cards[3] == cards[4]) {
			fmt.Println("three card")
		} else if ((cards[0] == cards[1]) && ((cards[2] == cards[3]) || (cards[3] == cards[4]))) || ((cards[1] == cards[2]) && (cards[3] == cards[4])) {
			fmt.Println("two pair")
		} else if cards[0] == cards[1] || cards[1] == cards[2] || cards[2] == cards[3] || cards[3] == cards[4] {
			fmt.Println("one pair")
		} else {
			fmt.Println("null")
		}
	}
}

Python: from itertools import permutations

def inini(_card):
    for i in range(len(_card)):
        _card[i] = 0


def main():
    while True:
        try:
            card = 14*[0]
            inini(card)
            number = list(map(int,input().split(',')))
            for v in number:
                card[v] += 1
            one_pair = 0
            tree_card = 0
            four_card = 0
            flag = 0
            for value in sorted(set(number),key=number.index):
                if card[value] == 2:
                    one_pair += 1
                elif card[value] == 3:
                    tree_card += 1
                elif card[value] == 4:
                    four_card += 1
            if one_pair == 1 and tree_card ==1:
                print('full house')
                flag = 777        
            elif one_pair == 1:
                print('one pair')
                flag = 777
            elif one_pair == 2:
                print('two pair')
                flag = 777
            elif tree_card == 1:
                print('tree card')
                flag = 777
            elif four_card == 1:
                print('four card')
                flag = 777
            straight = [[1,2,3,4,5],[2,3,4,5,6],[3,4,5,6,7],[4,5,6,7,8],[5,6,7,8,9],[6,7,8,9,10],[7,8,9,10,11],[8,9,10,11,12],[9,10,11,12,13],[10,11,12,13,1]]
            for s_list in straight:
                number.sort()
                if number[0] == 1 and number[4] == 13:
                    number.append(1)
                    number.pop(0)
                if number == s_list:
                    print('straight')
                    flag = 777
                    break
            if flag == 0:
                print('null')
        except EOFError:
            break

  

       
if __name__ == '__main__':
    main()

Python: import sys
for e in sys.stdin:
 e=sorted(map(int,e.split(',')))
 print([['null','straight'][e[0]*9<e[1]or e[4]-e[0]<5],'one pair','two pair','three card','full house',0,'four card'][sum(e.count(s)for s in e)//2-2])

Python: from itertools import permutations

def inini(_card):
    for i in range(len(_card)):
        _card[i] = 0


def main():
    while True:
        try:
            card = 14*[0]
            inini(card)
            number = list(map(int,input().split(',')))
            for v in number:
                card[v] += 1
            one_pair = 0
            tree_card = 0
            four_card = 0
            flag = 0
            for value in sorted(set(number),key=number.index):
                if card[value] == 2:
                    one_pair += 1
                elif card[value] == 3:
                    tree_card += 1
                elif card[value] == 4:
                    four_card += 1
            if one_pair == 1 and tree_card ==1:
                print('full house')
                flag = 777        
            elif one_pair == 1:
                print('one pair')
                flag = 777
            elif one_pair == 2:
                print('two pair')
                flag = 777
            elif tree_card == 1:
                print('tree card')
                flag = 777
            elif four_card == 1:
                print('four card')
                flag = 777
            straight = [[1,2,3,4,5],[2,3,4,5,6],[3,4,5,6,7],[4,5,6,7,8],[5,6,7,8,9],[6,7,8,9,10],[7,8,9,10,11],[8,9,10,11,12],[9,10,11,12,13],[10,11,12,13,1]]
            for s_list in straight:
                number.sort()
                if number[0] == 1 and number[4] == 13:
                    number.append(1)
                    number.pop(0)
                if number == s_list:
                    print('straight')
                    flag = 777
                    break
            if flag == 0:
                print('null')
        except EOFError:
            break

  

       
if __name__ == '__main__':
    main()

Python: import sys

def is_onepair(x):
    for i in range(4):
        if x.count(x[i]) == 2:
            return True

    return False

def is_twopair(x):
    count = 0
    for e in x:
        for e2 in x:
            if e == e2:
                count += 1
            if count == 2:
                return True

    return False

def is_threecard(x):
    for i in range(3):
        if x.count(x[i]) == 3:
            return True

    return False

def is_straight(x):
    x.sort()
    if x[0] == 1 and x[1:] == [10, 11, 12, 13]:
        return True
    for i in range(4):
        if x[i]+1 != x[i+1]:
            return False
    
    return True

def is_fullhouse(x):
    if is_threecard(x) and is_onepair(x):
        return True

    return False
    
def is_fourcard(x):
    for i in range(2):
        if x.count(x[i]) == 4:
            return True

    return False

for line in sys.stdin.readlines():
    hand = list(map(int, line.split(',')))
    if is_fourcard(hand):
        print("four card")
    elif is_fullhouse(hand):
        print("full house")
    elif is_straight(hand):
        print("straight")
    elif is_threecard(hand):
        print("three card")
    elif is_twopair(hand):
        print("two pair")
    elif is_onepair(hand):
        print("one pair")
    else:
        print("null")

Python: words = [['null','one pair','three card','four card'], ['','','two pair','full house']]

while True:
    try:
        cards = list(int(x) for x in input().split(","))
        cards = sorted(cards,reverse=False)
        isStright = True
        pairCard = -1
        pairNum = 0
        pairIndex = 0
        
        tmp = cards[0]
        for i in range(1,5):
            if tmp + 1 != cards[i]:
                isStright = False
            if tmp == cards[i]:
                if pairNum >= 1 and pairCard != cards[i]:
                    pairIndex = 1
                pairNum += 1
                pairCard = cards[i]
            tmp = cards[i]
                
        if isStright or (cards[0] == 1 and cards[1] == 10 and cards[2] == 11 and cards[3] == 12 and cards[4] == 13):
            ans = "straight"
        else:
            ans = words[pairIndex][pairNum]
        print(ans)
    except:
        break