fork download
  1.  
  2. def reversa(num,tam,res):
  3.  
  4. if(num == 0):
  5. return res
  6.  
  7. res = (10*tam) + (num%10)
  8. return reversa(num//10,tam-1,res)
  9.  
  10. def main():
  11.  
  12. a = int(input()) - 1
  13.  
  14. while(a != 0):
  15.  
  16. b = int(input())
  17. c = int(input())
  18.  
  19. d = reversa(b,len(b) - 1,0) + reversa(c,len(c) - 1,0)
  20. print(reversa(d,len(d) - 1,0))
  21.  
  22. a = a - 1
  23. main()
Runtime error #stdin #stdout #stderr 0.02s 6912KB
stdin
3
24 1
4358 754
305 794
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 23, in <module>
  File "prog.py", line 16, in main
  File "<string>", line 1
    24 1
       ^
SyntaxError: unexpected EOF while parsing