fork download
  1. # your code goes here
  2. b, c = input().split()
  3. nb = []
  4. nc = []
  5. for i in range(3):
  6. nb.append(b[(3-1)-i])
  7.  
  8. for i in range(3):
  9. nc.append(c[(3-1)-i])
  10.  
  11. nb = [int(i) for i in nb]
  12. nc = [int(i) for i in nc]
  13.  
  14. max = 0
  15. if(nb[0]>nc[0]):
  16. max = nb
  17. elif(nb[0]<nc[0]):
  18. max = nc
  19. else:
  20. if(nb[1]>nc[1]):
  21. max = nb
  22. elif(nb[1]<nc[1]):
  23. max = nc
  24.  
  25. for i in range(3):
  26. print(max[i], end='')
Runtime error #stdin #stdout #stderr 0.15s 26200KB
stdin
538 438
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 26, in <module>
TypeError: 'int' object is not subscriptable