DerioFT

1079.py

Oct 26th, 2021
1,523
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. N = int(input())
  2.  
  3. for data in range(N):
  4.  
  5.     split_input = input().split()
  6.  
  7.     data1 = float(split_input[0])
  8.     data2 = float(split_input[1])
  9.     data3 = float(split_input[2])
  10.  
  11.     average = ((data1 * 2) + (data2 * 3) + (data3 * 5)) / 10
  12.     print("%.1f" % average)
RAW Paste Data