Greatings
can anyone please explain why TLE
t=int(input())
for i in range(t):
n=int(input())
while(True):
n=n+1
#print©
c=(str(n)[::-1])
#print©
if(c==str(n)):
print©
break
created
last reply
- 1
reply
- 798
views
- 2
users
Greatings
can anyone please explain why TLE
t=int(input())
for i in range(t):
n=int(input())
while(True):
n=n+1
#print©
c=(str(n)[::-1])
#print©
if(c==str(n)):
print©
break