C++
\n\n# Code\n\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        string x="",y="",z="";\n        while(a){\n            if(a%2==1)x+=\'
\n\n# Code\n```\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        string x="",y="",z="";\n        while(a){\n            if(a%2==1)x+=\'1\';\n            else x+=\'0\';\n            a/=2;\n        }\n\n         while(b){\n            if(b%2==1)y+=\'1\';\n            else y+=\'0\';\n            b/=2;\n        }\n\n          while(c){\n            if(c%2==1)z+=\'1\';\n            else z+=\'0\';\n            c/=2;\n        }\n       int mx=max({x.size(),y.size(),z.size()});\n        for(int i=0;i<mx;i++){\n            if(x.size()<mx){\n                x+=\'0\';\n            }\n            if(y.size()<mx){\n                y+=\'0\';\n            }\n            if(z.size()<mx){\n                z+=\'0\';\n            }\n        }\n        reverse(x.begin(),x.end());\n        reverse(y.begin(),y.end());\n        reverse(z.begin(),z.end());\n        int cnt=0;\n        for(int i=0;i<mx;i++){\n            if(x[i]==\'0\'&&y[i]==\'0\'&&z[i]==\'1\')cnt++;\n            if(z[i]==\'0\'){\n                if(x[i]==\'1\')cnt++;\n                if(y[i]==\'1\')cnt++;\n            }\n        }\n\n        return cnt;\n\n    }\n};\n```
['C++']