TOPIC

Presentation Error

jparaujo4 asked 6 years ago

Não consegui identificar a causa do Presentation Error, pois fiz o teste e deu certo.


N = int(input())
t = 1
while N != 0:
    par = input()
    impar = input()
    for i in range(N):
        if i == 0:
            print('Teste {}'.format(t))
            t += 1
        A, B = map(int, input().split())
        if (A + B) % 2 == 0:
            print(par)
        else:
            print(impar)
        if i == (N - 1):
            N = int(input())
            print('\n')

This topic was solved and cannot recieve new replies.

  • dalves38 replied 6 years ago

    Você tem que mostrar todos os nomes de uma vez, e não de um por um