i have a doubt that we have to find pythagorean triple that is in this problem we have to read one side from the user and the other two sides we have to find out there is a case arise when user put negative value which is invalid or not appropriate because triangle sides are never negative
therefore is the invalid case and we have to print -1 as given in problem but it showing error and i got frustated to see the test cases -1 is given as testcase how it is happened
Problem of pythagoran
it’s mentioned in the question that if pair doesn’t exist you have to print -1 in it. also -1 is not given as input. It’s 1 which is given as input. Whenever you fail any test case you can ask for that test case from your TA support, so that you don’t lose points for it.
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.
