← All problemsSign in

Conquer the Fest!!

CodeChefRating 153Open on judge ↗

**IIIT Pune** is celebrating its annual fest with a lineup of exciting events. And among the technical events **InfInITy** stands out as a prestigious coding contest, known for its challenging coding problems. This year, the contest includes a difficult problem. The problem has a *difficulty level* of $B$, and a participant needs an IQ of **at least** $10\times B$ to solve it. You have an IQ o

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