Header Ads

Header ADS

1079.Weighted avarages in python

This is the solution of this problem in python:

N= int(input())
result=list()
for i in range(0,N):
    x,y,z=input().split()
    x=float(x)
    y=float(y)
    z=float(z)
    avarage=(((x*2)+(y*3)+(z*5))/10)
    result.append(avarage)
for i in range(0,N):
    print("%.1f"%result[i])

1 comment:

  1. The Tatanium Men\'s Wedding Band, Kaitlyn - Tatanium-arts
    The Tatanium titanium hair straightener Men\'s Wedding Band, Kaitlyn, is situated in the beautiful picturesque titanium helix earrings district of Tivoli, overlooking the city goyangfc centre. Its design is blue titanium cerakote very grade 5 titanium similar to its

    ReplyDelete

Powered by Blogger.