Out In
CodeChefOpen on judge ↗
Chef is so fond of electronics. He wants to know who entered and exited his house at what time. He, with the help of arduino and raspberry pi, developed a system and installed it on a door that detects the entrance and exits of anyone in the house. The machine prints $I$ when someone enters and prints $O$ when someone exits. But since chef is not a very good coder, his code is full of bugs and thu
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