TuHoangAnh's blog

By TuHoangAnh, history, 4 years ago, In English

given an integer $$$n$$$, find the number of $$$(i,j,k)$$$ so that:

$$$1 \lt i \lt j \lt k \lt =n$$$.

$$$i*j*k$$$ is a perfect square.

$$$3 \lt n \lt =10^5$$$

  • Vote: I like it
  • -5
  • Vote: I do not like it

| Write comment?
»
4 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Im dumb so pls don't take this seriously though. I can now think of a O(N*sqrt(N)) solution, would it be exceeded time limit cause u did not mention the time.