x = float(input())
y = int(x)
xsd = x-y
if xsd < 0.5:
print(y)
else:
print(y+1)
y = int(x)
xsd = x-y
if xsd < 0.5:
print(y)
else:
print(y+1)
我已经通过这道题!
https://gw-c.nowcoder.com/api/sparta/jump/link?link=https%3A%2F%2Fwww.nowcoder.com%2FquestionTerminal%2F3ab09737afb645cc82c35d56a5ce802a
全部评论
相关推荐
点赞 评论 收藏
分享