TEMA
Python3: Wrong answer (5%)
iprjunior preguntado 3 years ago
Olá pessoal, estou fazendo em Python eu meu código está dando 5% Erro,
Alguém me poderia me enviar casos de tests para testar o limite disso.
'''
Titlte: 2533 - ESTAGIO
Author: Israel Ruas
Date: 11/07/2020
'''
while True:
try:
M = int(input())
CALC = float (0.0)
SOMATORIA_N_C = float (0.0)
SOMATORIA_C = float (0.0)
IRA = float (0.0)
for counter in range(M):
NOTA_HORA = input()
lista = list(NOTA_HORA.split(' '))
NOTA = float(lista[0])
HORA = float(lista[1])
if (NOTA != 0):
CALC = (NOTA * HORA)
SOMATORIA_N_C += CALC
SOMATORIA_C += HORA
if ( SOMATORIA_C != 0):
IRA = (SOMATORIA_N_C / (SOMATORIA_C * 100))
#Print 4 casas decimais arredondas
print("{:.4f}".format(IRA))
except EOFError:
break