You are viewing a single comment's thread. Return to all comments →
print('Richard') if str(bin(int(input())-1)).count('1')%2 == 0 else print('Louise')
Could you explain this logic?
Counter game
You are viewing a single comment's thread. Return to all comments →
print('Richard') if str(bin(int(input())-1)).count('1')%2 == 0 else print('Louise')
Could you explain this logic?