题解 | #取近似值#
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
n=float(input()) c=int(n+0.5)#int只会向下取整,int(5.5+0.5)=6,int(5.4+0.5)=5 print(c)
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
n=float(input()) c=int(n+0.5)#int只会向下取整,int(5.5+0.5)=6,int(5.4+0.5)=5 print(c)
相关推荐
牛客41406533...:回答他在课上学,一辈子待在学校的老教授用三十年前的祖传PPT一字一句的讲解,使用谭浩强红皮书作为教材在devc++里面敲出a+++++a的瞬间爆出114514个编译错误来学