You are viewing a single comment's thread. Return to all comments →
C++:
#include <iostream> int main() { for (long int n, k = 0, a = (std::cin >> a, a); a; a--, k = 0) { for (std::cin >> n, --n; n; k += n & 1, n >>= 1); std::cout << (k & 1 ? "Louise" : "Richard") << std::endl; } return 0; }
Counter game
You are viewing a single comment's thread. Return to all comments →
C++: