Chef and Portal
CodeChefOpen on judge ↗
Chef once fell through a portal and landed on world of computers.There were many portals through which he can comeback to his world. If he goes through a wrong portal he would die.The only portals through which he can comeback to this world is when the portal number is even.The problem is, since he is in land of computers everything was in binary and chef can only understand decimal numbers.Fortun
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