私信TA
用户名:muxiaowan
访问量:2034
签 名:
自我简介:
作者: 木小碗 发表时间:2022-04-02 16:29:45 浏览:303 | 评论:0
解题思路: 没有Python就写一下吧 思路参考C优质题解注意事项:参考代码:
n = int(input())
cnt = 1
weight = 1
total = 1
while total<n:
cnt += 1
weight *= 3
total += weight
print(cnt)
0.0分
4 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换
万能编程问答
代码解释器
代码纠错
SQL生成与解释