#include #include #include #include using namespace std; int v[10],n,a[8][2],rest[20],now[8],occ[23],tot[100]; long long score[100]; char s[21]; int getrank(char ch){ if(ch=='A')return 1; if(ch=='T')return 10; if(ch=='J')return 11; if(ch=='Q')return 12; if(ch=='K')return 13; return ch-'2'+2; } int getsuit(char ch){ if(ch=='c')return 1; if(ch=='d')return 2; if(ch=='h')return 3; if(ch=='s')return 4; } bool can(int col,int mask) { for(int i=0;i<5;++i) for(int j=i+1;j<5;++j) if(now[i]==now[j]) return false; for(int i=0;i<5;++i) if((mask&(1<