uri 2653 solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
vector<string> v;
string s;
int r;
while(cin>>s)
{
v.push_back(s);
}
sort(v.begin(),v.end());
r=unique(v.begin(),v.end())-v.begin();
cout<<r<<endl;
return 0;
}
0 Comments