can anyone resolve the TLE error in my code and the problem name is number reverse

前端 未结 0 342
Happy的楠姐
Happy的楠姐 2020-12-17 16:22
n = int(input()) 
rev = 0
while(n > 0):
a = n % 10
rev = rev * 10 + a 
n = n // 10
print(rev)

i am getting TLC can anyone will me with the code

相关标签:
回答
  • 消灭零回复
提交回复
热议问题