Gcd vs Lcm
CodeChefOpen on judge ↗
Chefa and chef both are good at problem solving but they don't know who is better. So one day they decided to test their skills against each other. The strategy they took is, they will ask one question, if anyone failed to answer to its opponent then other one will treated as better. It is provided that Chefa is already failed to answer Chef's question and now its Chef's turn to answer Chef's ques
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