ZJU PAT 1011 World Cup Betting
不值一讲的水题
1 dict = {0:'W', 1:'T', 2:'L'} 2 def MaxList(list): 3 d = 0.0 4 max = 0 5 for i in range(len(list)): 6 if float(list[i]) > d: 7 max = i 8 d = float(list[i]) 9 return d, max 10 11 total = 1.0 12 for i in range(3): 13 list = raw_input().split() 14 d, max = MaxList(list) 15 print dict[max], 16 total = total * d 17 total = (total*0.65 - 1.0)*2.0 18 print "%.2f" % total,