题解 | #取近似值#
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
import math a=float(input()) b=a-int(a) if b>=0.5: print(math.ceil(a)) else: print(int(a))
取近似值
https://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
import math a=float(input()) b=a-int(a) if b>=0.5: print(math.ceil(a)) else: print(int(a))
相关推荐