题解 | #取近似值#
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
num = float(input())
num_int = int(num)
num_float = num-num_int
if num_float==0.5:
if num_int%2==0:
print(num_int+1)
else:
print(round(num))
else:
print(round(num))
n = float(input())
y = lambda x : int(x+0.5)
print(y(n))
n = float(input()) print(int(n+0.5))