Time Limit Exceeded em Python

Gustavo Misk asked 1 year ago

Por que está dando TLE?

while True: try: L = input().split() except EOFError: break X, Y, M = int(L[0]), int(L[1]), int(L[2]) while M > 0: M -= 1 K = input().split() a, b = int(K[0]), int(K[1]) if (a <= X and b <= Y) or (a <= Y and b <= X): print('Sim') else: print('Nao')

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

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