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!")