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")
		}
	}
}

C++: #include <stdio.h>
#include <string>

using namespace std;

int main() {
        const int N = 5;
        const string yaku[] = {
                "null",
                "one pair",
                "two pair",
                "three card",
                "straight",
                "full house",
                "four card"
        };

        while (true) {
                int tehuda[N];
                int ans;
                int input = scanf("%d,%d,%d,%d,%d",
                        &tehuda[0], &tehuda[1], &tehuda[2], &tehuda[3], &tehuda[                                                      4]);
                if (input == EOF) {
                        break;
                }
                for (int i = 0; i < N; i++) {
                        for (int j = N - 1; j > i; j--) {
                                if (tehuda[j - 1] > tehuda[j]) {
                                        int tmp = tehuda[j - 1];
                                        tehuda[j - 1] = tehuda[j];
                                        tehuda[j] = tmp;
                                }
                        }
                }

                if ((tehuda[0] == tehuda[1] && tehuda[1] == tehuda[2] &&
                                        tehuda[2] == tehuda[3]) ||
                                (tehuda[1] == tehuda[2] && tehuda[2] == tehuda[3                                                      ] &&
                                 tehuda[3] == tehuda[4])) {
                        ans = 6;
                } else if ((tehuda[0] == tehuda[1] && tehuda[1] == tehuda[2] &&
                                        tehuda[3] == tehuda[4]) ||
                                (tehuda[0] == tehuda[1] && tehuda[2] == tehuda[3                                                      ] &&
                                 tehuda[3] == tehuda[4])) {
                        ans = 5;
                } else if ((tehuda[0] == tehuda[1] && tehuda[1] == tehuda[2]) ||
                                (tehuda[1] == tehuda[2] && tehuda[2] == tehuda[3                                                      ]) ||
                                (tehuda[2] == tehuda[3] && tehuda[3] == tehuda[4                                                      ])) {
                        ans = 3;
                } else if ((tehuda[0] == tehuda[1] && (tehuda[2] == tehuda[3] ||
                                                tehuda[3] == tehuda[4])) ||
                                (tehuda[1] == tehuda[2] && tehuda[3] == tehuda[4                                                      ])) {
                        ans = 2;
                } else if ((tehuda[0] == tehuda[1]) || (tehuda[1] == tehuda[2])                                                       ||
                                (tehuda[2] == tehuda[3]) || (tehuda[3] == tehuda                                                      [4])) {
                        ans = 1;
                } else if ((tehuda[0] + tehuda[4] == tehuda[2] * 2 &&
                                        tehuda[2] * 2 == tehuda[1] + tehuda[3])                                                       ||
                                (tehuda[0] == 1 && tehuda[1] == 10 && tehuda[2]                                                       == 11 &&
                                 tehuda[3] == 12 && tehuda[4] == 13)) {
                        ans = 4;
                } else {
                        ans = 0;
                }
                printf("%s\n", yaku[ans].c_str());
        }

        return 0;
}

C++: #include<bits/stdc++.h>

using namespace std;

int main()
{
  vector<int> poker;
  int check[15] = {0};
  int two = 0;
  int three = 0;
  int four = 0;
  int ans = 0;

  string trump;
  getline(cin,trump);

  int a = 0;
  int b = 0;
  for(char e : trump){
    if(e == 49){
      if(b == 0){
        b = 1;
      }
      else{
        a = (e - 48) + 10;
        poker.push_back(a);
        b = 0;
      }
    }
    else if(48 <= e && 57 >= e){
      if(b == 1){
        a = (e - 48) + 10;
        b = 0;
      }
      else{
        a = e - 48;
      }
      poker.push_back(a);
    }
    else{
      if(b == 1){
        poker.push_back(b);
        b = 0;
      }
    }
  }
  
  if(b == 1){
    poker.push_back(b);
  }

  for(int e : poker){
    //cout<<e<<endl;
    ++check[e];
  }
  check[14] = check[1];

  for(int i = 1;i < 14;++i){
    if(check[i] == 4){
      ++four;
    }
    else if(check[i] == 3){
      ++three;
    }
    else if(check[i] == 2){
      ++two;
    }
  }

  for(int i = 1;i < 14;++i){
    cout<<check[i]<<endl;
  }

  //cout<<two<<" "<<three<<" "<<four<<endl;

  if(four == 1){
    cout<<"four card"<<endl;
    ans = 1;
  }
  else if(three == 1){
    ans = 1;
    if(two == 1){
      cout<<"full house"<<endl;
    }
    else{
      cout<<"three card"<<endl;
    }
  }
  else if(two == 2){
    ans = 1;
    cout<<"two pair"<<endl;
  }
  else if(two == 1){
    ans = 1;
    cout<<"one pair"<<endl;
  }
  else{
    for(int i = 1;i < 11;++i){
      if(check[i] == check[i+1] && check[i] == check[i+2] && check[i] == check[i+3] && check[i] == check[i+4] && check[i] != 0){
        cout<<"straight"<<endl;
        ans = 1;
        break;
      }
    }
  }

  if(ans == 0){
    cout<<"null"<<endl;
  }

  return 0;
}