In and Out
CodeChefOpen on judge ↗
Mathematics Teacher asked Sam to look after the class for a while and do not let anyone leave the class as "CR Nandu" is absent.Teacher is taking a lot of time into his work and students are getting impatient.So Sam allows students to go one by one out of class to get refreshed.But students are not listening to Sam and going in and out from the class. So Sam started noticing the Roll Numbers of S
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