simple and easy C++ solution 😍❤️‍🔥
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n\nclass Solution {\npublic:\n    int numberOfPairs(vector<int>& nums1, vector<int>& nums2, int k
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n```\nclass Solution {\npublic:\n    int numberOfPairs(vector<int>& nums1, vector<int>& nums2, int k) \n    {\n        int ans = 0, div;\n        for(auto val:nums1)\n        {\n            for(auto v:nums2)\n            {\n                div = v * k;\n                if(val % div == 0) ans++;\n            }\n        }\n        return ans;\n    }\n};\n```
['Array', 'Math', 'C++']