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