4th and 5th test i m getting TLE where the improvement needs to be done ?
question:
PYTHAGORAS TRIPLET
Given n , print its Pythagoras pair in increasing order if they exist. Otherwise print “-1”.
Input Format:
4 5
Constraints:
n <= 10^9
Output Format
Pythagoras Pair, x y
Sample Input
3
Sample Output
4 5
solution:https://ide.codingblocks.com/s/33526