AlphaGrey
AlphaGrey
全部文章
分类
华为刷题(57)
题解(6)
归档
标签
去牛客网
登录
/
注册
AlphaGrey的博客
一起刷题吧
全部文章
(共11篇)
题解 | #求int型正整数在内存中存储时1的个数#
import sys line=sys.stdin.readline() num=int(line) count=0 while num!=0: count+=1 num=num&(num-1) print(count)
Python3
数学
2021-09-27
1
620
首页
上一页
1
2
下一页
末页