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