Pythagorean Challenge

Code is working fine but the problem is not accepting the solution. Code : https://ide.codingblocks.com/s/281286

Same issue I incurred and when I used cpp it was accepted!
There is some problem with I/O we are not understanding
If you find error, please let me also know!!
Thanks

Your output is of the format -
(0, 119) (56, 105)
Whereas it should be -
(0,119) (56,105)
So try removing the blank space after the coma.

1 Like

I have updated the code, 1 testcase is still failing. https://ide.codingblocks.com/s/282115

For the given input -
3
0
100
25
Output should be-
(0,0)
(0,10) (6,8)
(0,5) (3,4)
But your output is-
(0,10) (6,8)
(0,5) (3,4)