URI Problem solving by Python

 URI Problem Solution


 

1004 - Simple Product 

 a = int(input(""))

b = int(input(""))

c = a*b

print("PROD =",c)

 1005 - Average 1

emon = float(input())

keya = float(input())

tuki = (3.5*emon + 7.5*keya) /11

print("MEDIA =",'{:.5f}'.format(tuki))

1006 - Average 2 

emon = float(input())

keya = float(input())

sona = float(input())

tuki = (2*emon + 3*keya + 5*sona) /10

print("MEDIA =",'{:.1f}'.format(tuki))

1007 - Difference 

a = int(input(""))

b = int(input(""))

c = int(input(""))

d = int(input(""))

f = a*b-c*d

print("DIFERENCA =",f)

1008 - Salary 

a = int(input(""))

b = int(input(""))

c = float(input(""))

NUMBER = a

print("NUMBER =",NUMBER)

d = b*c

SALARY = format(d,".2f")

print("SALARY = U$",SALARY)

1009 - Salary with Bonus 

a = input()

b = float(input(""))

c = float(input(""))

d = c*.15+b

F = format(d,".2f")

print("TOTAL = R$",F)

1010 - Simple Calculate 

a,b,c=input().split()

d,e,f=input().split()

a=int(a)

b=float(b)

c=float(c)

d=int(d)

e=float(e)

f=float(f)

j = b*c+e*f

h = format(j,".2f")

print("VALOR A PAGAR: R$",h)

1 comment:

Theme images by enot-poloskun. Powered by Blogger.