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