AlphaGrey
AlphaGrey
全部文章
题解
华为刷题(57)
归档
标签
去牛客网
登录
/
注册
AlphaGrey的博客
一起刷题吧
全部文章
/ 题解
(共2篇)
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
import sys for line in sys.stdin: num=int(line[:-1]) print(num*2.875) print(num*0.03125)
Python3
数学
2021-10-19
59
3192
题解 | #求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
612