Simple java solution
```\nclass Solution {\n    public int poorPigs(int b, int m, int n) {\n        int c=0;\n        while(Math.pow(n/m+1,c)<b)\n        {\n            c++;\n      
```\nclass Solution {\n    public int poorPigs(int b, int m, int n) {\n        int c=0;\n        while(Math.pow(n/m+1,c)<b)\n        {\n            c++;\n        }\n        return c;\n    }\n}
['Java']