Cod sursa(job #2331735)
Utilizator | Data | 29 ianuarie 2019 21:09:34 | |
---|---|---|---|
Problema | Restante | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.4 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("restante.in");
ofstream g("restante.out");
unordered_map <string,int> M;
string s;
int main(){
int n;
f>>n;
while(n--){
f>>s;
sort(s.begin(),s.end());
++M[s];
}
int ans=0;
for(const auto &it:M)
if(it.second==1)
++ans;
g<<ans;
return 0;
}