首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
How to check if an integer is a power of 3?
前端
未结
关注
23
1144
没有蜡笔的小新
2020-12-02 08:15
I saw this question, and pop up this idea.
23条回答
暗喜
(楼主)
2020-12-02 08:34
if (log n) / (log 3) is integral then n is a power of 3.
0
讨论(0)
查看其它23个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题