Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <set>
- using namespace std;
- int main() {
- int i;
- set<string>words;
- std::cin >> i;
- for (int j = 0; j < i; ++j) {
- string word;
- std::cin >> word;
- words.insert(word);
- }
- std::cout << words.size();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement