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
//------------------------------------------
#include <bits/stdc++.h> // only for GCC

using namespace std;

//typedef
//------------------------------------------
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef pair<int, int> pii;
typedef long long ll;
typedef unsigned long long ull;

//container util
//------------------------------------------
#define all(a)  (a).begin(),(a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define pb push_back
#define mp make_pair

//repetition
//------------------------------------------
#define loop(i,a,b) for(ull i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)
#define iter(i,c) for(auto i=(c).begin(); i!=(c).end(); ++i)
#define riter(i,c) for(auto i=(c).rbegin(); i!=(c).rend(); ++i)

//constant
//--------------------------------------------
const double eps = 1e-10;
const double pi  = acos(-1.0);
const double inf = (int)1e8;

// output vector
// ------------------------------------------
namespace std {
    template<typename T>ostream&operator<<(ostream&os, vector<T>const&v){
        iter(it,v) os<<*it<<(it+1==v.end()?"":",");
        return os;
    }
    template<typename T, typename U>ostream&operator<<(ostream&os,const pair<T,U>&p){
        return os << "[" << p.dirst << "," << p.second << "]";
    }
}

//clear memory
// ------------------------------------------
#define clr(a,i) memset((a), (i) ,sizeof(a))

int main(){
   int n;
    char c;
    while(cin>>n){
      map<int,int> t;
      int two=0,three=0,four=0,strate=0;
      t[n]++;
      rep(i,4){
         cin >> c >> n;
         t[n]++;
      }
      rep(i,14){
         if(t[i]==2) two++;
         if(t[i]==3) three++;
         if(t[i]==4) four++;
         if(t[i]==1&&t[i+1]==1&&t[i+2]==1&&t[i+3]==1&&t[i+4]==1) strate++;
      }
      if(t[1]==1&&t[10]==1&&t[11]==1&&t[12]==1&&t[13]==1) strate++;
      if(two==1){
         if(three==1) cout << "full house" << endl;
         else cout << "one pair" << endl;
      }else if(two==2) cout << "two pair" << endl;
      else if(three==1) cout << "three card" << endl;
      else if(strate==1) cout << "straight" << endl;
      else if(four==1) cout << "four card" << endl;
      else cout << "null" << endl;
    }
}

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 && e != 49){
      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){
    ++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;
    }
  }

  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;
}

C++: #include <stdio.h>
#include <algorithm>
using namespace std;

int main(){
	int a[5],i,pair;
	while(scanf("%d,%d,%d,%d,%d",&a[0],&a[1],&a[2],&a[3],&a[4]) != EOF){
		pair = 0;
		sort(a,a + 5);
		if(a[1] == a[2] && a[2] == a[3] && (a[0] == a[1] || a[3] == a[4])) printf("four card\n");
		else if((a[0] == a[1] && a[2] == a[3] && a[3] == a[4]) || (a[0] == a[1] && a[1] == a[2] && a[3] == a[4])) printf("full house\n");
		else if((a[0] == a[1] && a[1] == a[2]) || (a[1] == a[2] && a[2] == a[3]) || (a[2] == a[3] && a[3] == a[4])) printf("three card\n");
		else if((a[0] + 1 == a[1] && a[1] + 1 == a[2] && a[2] + 1 == a[3] && a[3] + 1 == a[4]) || (a[0] == 1 && a[1] == 10 && a[2] == 11 && a[3] == 12 && a[4] == 13)) printf("straight\n");
		else {
			for(i = 0;i < 3;i++){
				if(a[i] == a[i + 1]) pair++;
			}
			if(pair == 2) printf("two pair\n");
			else if(pair == 1) printf("one pair\n");
			else printf("null\n");
		}
	}
	return 0;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
bool isStraight(int* a)
{
    if(a[0]==1&&a[1]==10&&a[2]==11&&a[3]==12&&a[4]==13) return true;
    for(int i=1;i<5;i++) if(a[i]!=a[i-1]+1) return false;
    return true;
}
int main()
{
    int a[5]; char ch;
    while(cin >> a[0] >> ch >> a[1] >> ch >> a[2] >> ch >> a[3] >> ch >> a[4])
    {
        int sum=1; int pair=0;
        sort(a,a+5);
        for(int i=1;i<5;i++)
        {
            int tmp=1;
            while(i<5 && a[i-1]==a[i]) {tmp++; i++;}
            sum=max(tmp,sum);
        }
        bool flag=true;
        for(int i=1;i<5;i++)
        {
            if(flag && a[i-1]==a[i]) {pair++; flag=false;}
            else flag=true;
        }
        if(sum==4) cout << "four card" << endl;
        else if(sum==3 && pair==2) cout << "full house" << endl;
        else if(isStraight(a)) cout << "straight" << endl;
        else if(sum==3) cout << "three card" << endl;
        else if(pair==2) cout<< "two pair" << endl;
        else if(pair==1) cout << "one pair" << endl;
        else cout << "null" << endl;
    }
}