Logic Exam
CodeChefOpen on judge ↗
In the Wonderous School of Moon, the Logic Exam is scheduled today. The school belongs to Royal Family and hence has some weird yet interesting rules. In the exam classroom, the students start sitting in random order with starting roll number $X$ and the capacity of the classroom is $Y+1$. Now teacher takes attendance and finds out that one student is missing, Let’s assume his roll number to be $
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