beats 92%, 90% c++
Code\n\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        unordered_set<string> set;\n        for (string &s: emails) {\n   
# Code\n```\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        unordered_set<string> set;\n        for (string &s: emails) {\n            string temp; int i;\n            for (i=0; s[i]!=\'@\'; i++) {\n                if (s[i]==\'+\') break;\n                else if (s[i] == \'.\') continue;\n                temp.push_back(s[i]);\n            }\n            while (s[i]!=\'@\') i++;\n            temp += s.substr(i);\n            set.insert(temp);\n        }\n        return set.size();\n    }\n};\n```
['C++']