[JAVA] 0ms, 100%
\nclass Solution {\n    public int poorPigs(int buckets, int mi, int mt) {\n      int period = mt / mi + 1;\nint ans = 0;\nwhile(Math.pow(period, ans) < buckets
```\nclass Solution {\n    public int poorPigs(int buckets, int mi, int mt) {\n      int period = mt / mi + 1;\nint ans = 0;\nwhile(Math.pow(period, ans) < buckets)\n{\nans ++;\n}\nreturn ans;\n    }\n}\n```\n# PLEASE UPVOTE IF YOU WANT JUSTICE FOR PIGS
['Math', 'Java']