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