fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef pair<int,int> pi;
  4. #define pb push_back
  5. #define mp make_pair
  6. int solve(int input1,char * input2[])
  7. {map<set<char>,int> Map;
  8. for(int i=0;i<input1;i++)
  9. {int len=strlen(input2[i]);
  10. set<char> st2;
  11. for(int j=0;j<len;j++)
  12. if(j&1)st2.insert(input2[i][j]);
  13. Map[st2]++;
  14. return Map.size();
  15. }
  16.  
  17. }
  18. signed main()
  19. {char* str[]={"abcd","cdab"};
  20. return 0;}
  21.  
Success #stdin #stdout 0s 4252KB
stdin
Standard input is empty
stdout
Standard output is empty