We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
We are not supposed to give away answers here. But I would like to suggest you a correction.
intstead of sum([..]) go with (bin(input()-1)[2:]).count('1')
Counter game
You are viewing a single comment's thread. Return to all comments →
We are not supposed to give away answers here. But I would like to suggest you a correction. intstead of sum([..]) go with (bin(input()-1)[2:]).count('1')