Classroom
CodeChefOpen on judge ↗
In a School, there are $N$ students with their roll numbers from $1$ to $N$ and there are $N$ benches for the students. For the examination the sitting arrangement is as follows:- Assume roll number of a student is $X$ then for every student If $X$ $mod$ $2$ $!= 0$ then that student will sit first and then remaining student will sit. Now the teacher wants to know the roll number of the stude
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