L1-031 到底是不是太胖了 python

python实现

num=int(input())

lst=[]
for i in range(num):
    str=input()
    temp_lst=[]
    temp_lst.append(int(str.split(" ")[0]))
    temp_lst.append(int(str.split(" ")[1]))
    lst.append(temp_lst)

for item in lst:
    dream_weight=(item[0]-100)*1.8
    true_weight=item[1]
    if abs(true_weight-dream_weight)<dream_weight*0.1:
        print("You are wan mei!")
    else:
        if true_weight>dream_weight:
            print("You are tai pang le!")
        else:
            print("You are tai shou le!")

 

posted @ 2024-06-27 13:44  豆豆是只乖狗狗  阅读(6)  评论(0编辑  收藏  举报