TOPIC

Wrong answer 100%

rwsalles asked 2 years ago

ptal = [] ptbl = []

while True: N = int(input()) a = 0 b = 0 pta = 0 ptb = 0 if N == 0: break else: while a < N: A, B = input().split() if A > B: pta = pta + 1 elif B > A: ptb = ptb + 1 a = a + 1 ptal.append(pta) ptbl.append(ptb)

while b < len(ptal): print('{0} {1}'.format(ptal[b], ptbl[b])) b = b + 1

Já testei e está funcionando no compilador

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

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