题解 | #取近似值#
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
n = input() # n = '13.4999' if len(n) > 1: n_1 = n.split('.') # print(n_1) # if int(n_1[1]) - 5>= 0: # res = int(n[0]) + 1 # print(res) for i in n_1[1]: if int(i) < 5: print(n_1[0]) break else: print(int(n_1[0])+1) break else: print(n)