You are viewing a single comment's thread. Return to all comments →
Python3 1 liner:
return ('Louise', 'Richard')[(n.bit_count() + int(math.log2(n & -n))) % 2] #or return ('Richard', 'Louise')[(n.bit_count() + (n & -n).bit_length()) % 2]
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 →
Python3 1 liner: