
    Given a list of user activity scores from a social networking platform, determine how many pairs of users have compatible event preferences by counting the number of pairs whose activity scores, when XORed together, result in an even number. The compatibility count will be used to optimize group event recommendations by identifying clusters of users with similar interaction patterns.
    

    
def find_even_pair(A):
    """
    Given a list of user activity scores from a social networking platform, determine how many pairs of users have compatible event preferences by counting the number of pairs whose activity scores, when XORed together, result in an even number. The compatibility count will be used to optimize group event recommendations by identifying clusters of users with similar interaction patterns.
    

    """
def find_even_pair(A):
    """
    Given a list of user activity scores from a social networking platform, determine how many pairs of users have compatible event preferences by counting the number of pairs whose activity scores, when XORed together, result in an even number. The compatibility count will be used to optimize group event recommendations by identifying clusters of users with similar interaction patterns.
    

    """
    count = 0
    for i in range(0, len(A)):
        for j in range(i + 1, len(A)):
            if (A[i] ^ A[j]) % 2 == 0:
                count += 1
    return count