Cod sursa(job #2792397)
Utilizator | Data | 1 noiembrie 2021 16:33:25 | |
---|---|---|---|
Problema | Restante | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include<bits/stdc++.h>
using namespace std;
ifstream f("restante.in");
ofstream g("restante.out");
map<string,int> M;
int N,s;
string x;
int main()
{
for(f>>N;N;--N) {
f>>x,sort(x.begin(),x.end());
if(!M[x])
++s;
else if(M[x]==1)
--s;
++M[x];
}
g<<s;
return 0;
}