full_hope
full_hope
题解
题解 | #取近似值#
全部文章
题解
归档
标签
去牛客网
登录
/
注册
题解 | #取近似值#
596 浏览
2 回复
2022-01-29
full_hope
+关注
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
a = input() b = a.split('.') if int(b[1][0])>=5: print(int(b[0])+1) else: print(int(b[0]))
Python3
举报
收藏 1
赞 20
评论加载中...