#include<bits/stdc++.h> using namespace std; #define LL long long #define itn int
int n; unordered_map<string,int>mp; string xy[]={ "DA","CA","HA","SA", "D2","C2","H2","S2", "D3","C3","H3","S3", "D4","C4","H4","S4", "D5","C5","H5","S5", "D6","C6","H6","S6", "D7","C7","H7","S7", "D8","C8","H8","S8", "D9","C9","H9","S9", "DT","CT","HT","ST", "DJ","CJ","HJ","SJ", "DQ","CQ","HQ","SQ", "DK","CK","HK","SK" }; int main(){ freopen("poker.in","r",stdin); freopen("poker.out","w",stdout); cin>>n; for(int i=1;i<=n;i++){ string s;cin>>s; mp[s]=1; } itn ans=52; for(int i=0;i<52;i++){ if(mp.count(xy[i]))ans--; } cout<<ans; return 0; }
|