c++ | 100% faster than all | easy
\n# Code\n\nclass Solution {\npublic:\n\n int poorPigs(int buck, int Die, int Test) {\n        \n        int y = (Test/Die) + 1;\n        int z = y;\n        in
\n# Code\n```\nclass Solution {\npublic:\n\n int poorPigs(int buck, int Die, int Test) {\n        \n        int y = (Test/Die) + 1;\n        int z = y;\n        int count = 1;\n        if(buck==1){\n            return 0;\n        }\n        \n        while(y<buck){\n            \n            y = y * z;\n            count++;\n            \n        }\n        return count;\n    }\n};\n```
['C++']