题解 | #取近似值#
取近似值
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]))
取近似值
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]))
相关推荐