Fun Maths
CodeChefOpen on judge ↗
Chef meets his friend Rohan after a long time. Rohan is quite good at maths. He gives some problems to Chef. Since Chef is weak in maths he wants your help. You have to find the sum of three numbers such that lcm of first two numbers and last two numbers are given. These three numbers are pairwise distinct and also co prime to one other. ###Input: t: no of test cases m,n: lcm of first tw
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