Pythagorean Challenge
CodeChefOpen on judge ↗
Given a non negative integer A, print all the pairs of integers(a,b) such that a and b are positive integers aInput Format First line contains T , number of test cases. Next T lines contain a single integer A each. Constraints AOutput Format T lines each containing a pair (a,b) in sorted order. Sample Input 3 1 9 25 Sample Output (0,1) (0,3) (0,5) (3,4)
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start