← All problemsSign in

Road To ICPC

The road to ACM ICPC is a tough one, filled with many obstacles. Only the fastest and most knowledgable coders get to witness and experience its glory. You too, enchanted by all the fame and fortune, decide to set out on this tedious path. After a few days of journey, you reach the first gate. This gate is huge, and heavily guarded. The guard there tells you that this is the first test to make

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