L1-061 新胖子公式 python

python 实现

s=input()
weight=float(s.split(" ")[0])
height=float(s.split(" ")[1])

ratio=weight/(height*height)

print("{:.1f}".format(ratio))
if ratio>25:
    print("PANG")
else:
    print("Hai Xing")

 

posted @ 2024-06-29 16:33  豆豆是只乖狗狗  阅读(1)  评论(0编辑  收藏  举报