fork download
  1. import math
  2.  
  3. for x in range(2000):
  4. #for y in range(x):
  5. y = 1845
  6. z = y + x
  7. if z > 2048:
  8. continue
  9. s = math.sqrt(z)
  10. if s == int(s):
  11. print((z, x, y))
  12.  
Success #stdin #stdout 0.13s 14188KB
stdin
Standard input is empty
stdout
(1849, 4, 1845)
(1936, 91, 1845)
(2025, 180, 1845)