python 實現
num=int(input()) lst=[] for i in range(num): s=input() gender=str(s.split(" ")[0]) height=float(s.split(" ")[1]) if gender=="M": lst.append(height/1.090) else: lst.append(height*1.09) for i in lst: print("{:.2f}".format(i))
python 實現
num=int(input()) lst=[] for i in range(num): s=input() gender=str(s.split(" ")[0]) height=float(s.split(" ")[1]) if gender=="M": lst.append(height/1.090) else: lst.append(height*1.09) for i in lst: print("{:.2f}".format(i))