TOPIC

Não consigo achar o erro Wrong answer (100%)

Pedro Emanoel de Resende Santana asked 2 months ago

a, w1 = input().split() x1,y1,z1 = map (int, input().split(' : ')) b, w2 = input().split() x2,y2,z2 = map (int, input().split(' : ')) w1 = int(w1) w2 = int(w2)

segundo = 0 minuto = 0 hora = 0 dia = 0

segundo = (60 - z1) + z2 if segundo >= 60 : segundo -= 60 minuto += 1

minuto = (60 - y1 ) + y2 if minuto >= 60: minuto -= 60 hora += 1

hora = (24 - x1) + x2

dia = (w2 - w1) if x1 > x2: dia -= 1

print(f'{dia} dia(s)') print(f'{hora} hora(s)') print(f'{minuto} minuto(s)') print(f'{segundo} segundo(s)')

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

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