100%,98% BEATS || C++
Code\n\nclass Solution {\npublic:\n    bool isFascinating(int n) {\n        string str = "";\n        int a = n*2,b=n*3;\n        str = to_string(n)+to_string(a
# Code\n```\nclass Solution {\npublic:\n    bool isFascinating(int n) {\n        string str = "";\n        int a = n*2,b=n*3;\n        str = to_string(n)+to_string(a)+to_string(b);\n        vector<int> v(10,0);\n        for(auto &i: str){\n            v[i-\'0\']++;\n        }\n        for(int i = 0; i < 10; i++){\n            if(i==0){\n                if(v[i])return false;\n            }else{\n                if(v[i]!=1)return false;\n            }\n        }\n        return true;\n    }\n};\n```
['C++']