Algorithm for expressing given number as a sum of two squares

前端 未结 0 1141
误落风尘
误落风尘 2020-12-14 02:33

My problem is as follows:

I\'m given number n and I want to find all numbers x and y such that

n = x² + y²

Since this is addition order does not matter

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