Https://ide.codingblocks.com/s/252879

why its not clearin g all test cases

hello @Aditya-Kushwaha-914550392281281
you have assumed that pythagoras triplet will exist for all input .
but it is not true there might be input where triplet is not possible (for example n=1 ) so for such cases u need to print -1

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.