当前位置: 代码迷 >> 综合 >> 326 https://leetcode-cn.com/problems/power-of-three/
  详细解决方案

326 https://leetcode-cn.com/problems/power-of-three/

热度:28   发布时间:2023-10-13 02:39:03.0
class Solution {
    
public:bool isPowerOfThree(int n) {
    return n > 0 && 1162261467 % n == 0;}
};
  相关解决方案