fork(1) download
  1. i = 0
  2. j = 0
  3. pol = 0
  4. while i <= 999:
  5. j = i
  6. while j <= 999:
  7. temp = str(i * j)
  8. tempInverso = temp[::-1]
  9. if temp == tempInverso:
  10. polTemp = int(temp)
  11. if polTemp > pol:
  12. pol = polTemp
  13. j += 1
  14. i += 1
  15. print(pol)
Success #stdin #stdout 0.22s 28384KB
stdin
Standard input is empty
stdout
906609