Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0.
执行用时 :1084 ms, 在所有 C++ 提交中击败了5.60%的用户 内存消耗 :8.6 MB, 在所有 C++ 提交中击败了80.70%的用户
执行用时 :4 ms, 在所有 C++ 提交中击败了91.60%的用户 内存消耗 :8.8 MB, 在所有 C++ 提交中击败了78.07%的用户