There’s something in the output format which isn’t said about i think.Because I just tired and found all possible pairs and everything is getting printed for a<=1000.
Can you please tell that small thing which I am missing ?The logic I used is very simple just iterating over i=0 to 31 as it won’t exceed that and two loops for each test case and sorting the output.
Also what should I do if there’s no answer?Should I leave a blank line or not?
