题解 | #取近似值#
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
a = float(input()) b = int(a) if float(a - b) >= 0.5: print(b + 1) else: print(b)
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
a = float(input()) b = int(a) if float(a - b) >= 0.5: print(b + 1) else: print(b)
相关推荐