Taunting Tarun
CodeChefOpen on judge ↗
Mittal and Tarun are two friends.Tarun always irritate Mittal when he solves problem of competitve programming.One day Mittal asks a question from Tarun to taunt him. He gives Tarun two different positive integers and asks him to find the total number of common factors between them. Tarun finds it difficult to solve, can you help him ? ###Input: Two space separated integers $x$ and $y$.
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