You are viewing a single comment's thread. Return to all comments →
I understood the logic and wrote a one liner to solve the problem. Here's the code:
print('Richard') if str(bin(int(input())-1)).count('1')%2 == 0 else print('Louise')
Thanks a lot for explaining the logic nicely! :)
Seems like cookies are disabled on this browser, please enable them to open this website
Counter game
You are viewing a single comment's thread. Return to all comments →
I understood the logic and wrote a one liner to solve the problem. Here's the code:
Thanks a lot for explaining the logic nicely! :)