← All problemsSign in

Help Chef!

Sam loves to spend time on CodeChef, and She’s been participating on the CodeChef for $2$ years in a row. She solves all the problems with perfection, and this year too, she is planning to win. But not everyone likes this. Chef and his friends have decided to win this time at any cost. They come up with the plan of changing Sam's registration number $X$ to disqualify her as she is the most valuab

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start