Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <stdio.h>#include <string.h>#include <string>#include <iostream>using namespace std;#define LL unsigned long longconst int maxn = 15;const int maxm = 5;LL f[maxn][maxn][maxn][maxn][maxn][maxm];bool vis[maxn][maxn][maxn][maxn][maxn][maxm];int k;int s[maxn];int cnt[maxn];char ch[10];int num[100];int n;int change(char c) {if (c >= '2' && c <= '9') {return c - '0';} else if (c == 'T') {return 10;} else if (c == 'J') {return 11;} else if (c == 'Q') {return 12;} else if (c == 'K') {return 13;} else if (c == 'A') {return 1;}