Pandas_007
Pandas_007
全部
题解 | #查找输入整数二进制中1的个数#
全部文章
分类
归档
标签
去牛客网
登录
/
注册
题解 | #查找输入整数二进制中1的个数#
554 浏览
0 回复
2023-08-03
Pandas_007
+关注
while True: try: n = input() print(bin(int(n)).split("0b")[1].count("1")) except:break
举报
收藏 1
赞
评论加载中...