import sys for line in sys.stdin: a = float(line.rstrip()) if a % 1 >=0.5: print(int(a//1)+1) else: print(int(a//1))
int函数本就是向下取整,用不用//都可以,这里写了就写了。