Too many assignments (part 1)
CodeChefOpen on judge ↗
This is an interactive problem. Anant has N assignment indexed from 1 to N which he needs to submit but he doesn't know the last date of submission of these assignments. So, he asked his topper friend Atharv about it. Now since Atharv has almost completed his assignments, he will play a game with Anant. Anant will give the index of two assignments and Atharv will reply with 1 or 2. - '1' means th
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