cpp using unordered_set
Runtime: 36 ms, faster than 51.17% of C++ online submissions for Unique Email Addresses.\nMemory Usage: 13.2 MB, less than 59.52% of C++ online submissions for 
Runtime: 36 ms, faster than 51.17% of C++ online submissions for Unique Email Addresses.\nMemory Usage: 13.2 MB, less than 59.52% of C++ online submissions for Unique Email Addresses.\n```\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        unordered_set<string> ust;\n        \n        for (auto str:emails)\n        {\n            string tmp;\n            \n            for (auto c:str)\n            {\n                if (c == \'.\') continue;\n                if (c == \'+\' || c == \'@\') break;\n                tmp.push_back(c);\n            }\n            ust.insert(tmp + str.substr(str.find(\'@\')));\n        }\n        \n        return ust.size();\n    }\n};\n```
[]