<filename>Beginner/1079.py

n = int(input())

for i in range(0, n, 1):
    a = float(input())
    b = float(input())
    c = float(input())
    mean = (a * 2 + b * 3 + c * 5)/10
    print("{:.1f}".format(mean))
<filename>Beginner/1079.py

n = int(input())

for i in range(0, n, 1):
    a = float(input())
    b = float(input())
    c = float(input())
    mean = (a * 2 + b * 3 + c * 5)/10
    print("{:.1f}".format(mean))