while True: try: s = float(input()) p = (s + 0.5) // 1 print(int(p)) except: break
对Python内建的向上或向下取整函数不熟悉,不过可以取巧,只要加上0.5并对1整除,就可以得到近似的效果