Hail Hydra
CodeChefOpen on judge ↗
Captain America has been turned into a Hydra agent as the Hydra supreme changed his past using Kobik- the cosmic cube. Now it is upto Mario to revert Cap back. Mario finds Kobik and explains to him that Hydra is evil. But he asks for evidence and for this, he gives Mario a problem to solve. In the problem Mario is given a number $P$ and prime $M$ such that he has to find the maximum $X$ lesser t
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