C++, Java, 0ms, 100%faster, simple solution using hint#3
C++\n\nclass Solution {\npublic:\n    int poorPigs(int buckets, int minutesToDie, int minutesToTest) {\n        int T = (minutesToTest/minutesToDie) + 1;\n     
**C++**\n```\nclass Solution {\npublic:\n    int poorPigs(int buckets, int minutesToDie, int minutesToTest) {\n        int T = (minutesToTest/minutesToDie) + 1;\n        int cnt = 0;\n        int total = 1;\n        while (total < buckets) {\n            total *= T;\n            cnt++;\n        }\n        return cnt;\n    }\n};\n```\n**Java**\n```\nclass Solution {\n    public int poorPigs(int buckets, int minutesToDie, int minutesToTest) {\n        int T = (minutesToTest/minutesToDie) + 1;\n        int cnt = 0;\n        int total = 1;\n        while (total < buckets) {\n            total *= T;\n            cnt++;\n        }\n        return cnt;\n    }\n}\n```
['C', 'Java']