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