Guest User

Untitled

a guest
Dec 11th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <set>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7. int a,b;
  8. string city;
  9. cin>>a;
  10. for (int i=0;i<a;i++){
  11. cin>>b;
  12. set<string>aset;
  13. for (int j=0;j<b;j++){
  14. cin>>city;
  15. aset.insert(city);
  16. }
  17. cout<<aset.size()<<endl;
  18. }
  19. }
Add Comment
Please, Sign In to add comment