TOPIC

Wrong answer (10%)

cleano asked 2 years ago


```Estou usando o python na versão 3.8, e estou com o seguinte error  Wrong answer (10%), a resposta de erro que me está dando é essa

### files dont match - see output
*** 2569-k.out  2021-07-09 04:08:37.046347473 +0000
--- 2569/2569-k.sol 2017-06-12 20:14:36.633554000 +0000
***************
*** 1 ****
! 16
--- 1 ----
! 160
 Differences were found

 e essa também 

 ### files dont match - see output
*** 2569-l.out  2021-07-09 04:08:37.534347813 +0000
--- 2569/2569-l.sol 2017-06-12 20:14:37.513555000 +0000
***************
*** 1 ****
! 26
--- 1 ----
! 206
 Differences were found

 com o seguinte codigo:

 `n1, operacao, n2 = input().split()

def tratamentoDigitos(numero):
    listaNumero = " ".join(numero)
    trata = listaNumero.replace('7', '0')
    novoNumero =trata.replace(" ", "")
    return int(novoNumero)

def tratamentoResultado(numero):
    numero = str(numero)    
    listaNumero = " ".join(numero)
    trata = listaNumero.replace('7', '')
    novoNumero =trata.replace(" ", "")
    return 0 if novoNumero == "" else  int(novoNumero)

def exibir(cal):
    resultadoTratamento = tratamentoResultado(cal)    
    print(resultadoTratamento)

if(operacao == '+'):
   cal = tratamentoDigitos(n1) + tratamentoDigitos(n2)
   exibir(cal)
else:
   cal = tratamentoDigitos(n1) * tratamentoDigitos(n2)
   exibir(cal)   

 `

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.