Pagini recente » Cod sursa (job #669960) | Cod sursa (job #1943073) | Cod sursa (job #1924338) | Cod sursa (job #1619312) | Cod sursa (job #125707)
Cod sursa(job #125707)
#include <cstdio>
#include <cstring>
#include <map>
#include <algorithm>
#include <string>
using namespace std;
map< string, int > mp;
int main()
{
freopen("restante.in", "r", stdin);
freopen("restante.out", "w", stdout);
int N, ret = 0; char buf[18];
for( scanf("%d \n ", &N); N--; )
{
gets( buf );
sort( buf, buf + strlen(buf) );
mp[ string(buf) ]++;
}
for( map<string,int>::iterator it = mp.begin(); it != mp.end(); it++ )
ret += ( it->second == 1 );
printf("%d\n", ret);
// while(1);
return 0;
}