← All problemsSign in

Student of the year

Abhimanyu and Rohan Nanda got indulged in a fight for Shanaya. They formed their gangs having $N$ members each. Every person in the gang has a unique ID assigned to him and the power level of that person is the number of $1’s$ in the binary representation of his ID. A person having more power can defeat other person with less (or equal) power and One person can fight $at

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start