[C++] 0ms
\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int ai,bi,ci;\n        int res=0;\n        while(a>0 || b>0 || c>0){\n            
```\nclass Solution {\npublic:\n    int minFlips(int a, int b, int c) {\n        int ai,bi,ci;\n        int res=0;\n        while(a>0 || b>0 || c>0){\n            ai=a%2;bi=b%2;ci=c%2;\n            if(ci==1 && ai+bi==0)\n                res++;\n            else if(ci==0)\n                res+=ai+bi;\n            a/=2;b/=2;c/=2;\n        }\n        return res;\n    }\n};\n```
['C']