THE CHALLENGE
CodeChefOpen on judge ↗
PROBLEM DESCRIPTION Vittoria has 2 boxes with values a and b respectively. She is challenged by her friend to make the value in both boxes equal using minimum operations. For this her friend has put up a condition that she can only multiply values of the boxes with prime numbers. She wants to win this challenge .Being her friend you have to help Vittoria in winning this challenge. Input - First
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