Alguém me ajuda, time limit exceed em python

Nathan asked 1 year ago

num = int(input())
while num > 0:
    x = list(map(int, input().split()))
    cont = 0
    for i in x:
        if i > (sum(x) - x[0])/(len(x)-1):
            cont += 1
    num -= 1

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

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