Pythagorean triplets problem

https://ide.codingblocks.com/s/51785

sir, my code is only passing 2 test cases out of 6. wht is the error?

the constrains are large enough so take long long instead of int.

2 Likes