TOPIC

wrong answer (35%) python

Luiz Thadeu Cardoso Costa Bastos asked 6 months ago

import sys

t = 0

while True:

    q = input()

    n = 0

    cont = 1

    t += 1

    if q == "0":

        break;

    numIngress = list(map(int, sys.stdin.readline().split()))

    for x in numIngress:

        if x == cont and n == 0:

            n = x

        cont += 1

    print("t {}\n{}\n".format(t, n))

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

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