#include #include int main() { int days; int bulls_pay; std::cin >> days >> bulls_pay; std::vector xors; xors.reserve(days); int found = 0; int num; for (int i = 0; i < days; i++) { std::cin >> num; for (int &xnum : xors) { xnum = xnum | num; if (xnum == bulls_pay) found++; } xors.push_back(num); if (num == bulls_pay) found++; } std::cout << found << std::endl; return 0; }