1835.cpp (288B)
1 class Solution { 2 public: 3 int getXORSum(const vector<int> &arr1, const vector<int> &arr2) const { 4 static const auto count = [](const auto &arr) { 5 return accumulate(begin(arr), end(arr), 0, bit_xor()); 6 }; 7 return count(arr1) & count(arr2); 8 } 9 };