TOPIC

runtime python

UbiratanFilho asked 3 years ago

n = 0 while n >= 0: n = int(input()) soma = 0 i = 0 l = input().split() maior = 0 while i < n: x = int(l[i]) if x > maior: maior = x i += 1 if maior < 10: print(1) if maior >= 10 and maior < 20: print(2) if maior >= 20: print(3)

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

  • Brendo_NAVAL_UEA replied 3 years ago

    Você precisa fazer o EOF. da seguinte forma:

    while True:
        try:
            // coloque o seu código aqui!
        except EOFError:
          break