Satyam and his Confusion
CodeChefOpen on judge ↗
Satyam was challanged by his friend Aditya to play a game called 'Is it the one?'. The game includes n Cups given to satyam by aditya. Now satyam is asked to keep all cups on top of one another on a table kept next to him. Now aditya asked satyam to tell him whether total cups is in power of two. Satyam wants to show aditya what is he capable of and wants to tell him this as soon as possible. I
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