✅ Easy C++ Solution
Code\n\nclass Solution {\npublic:\n    int numberOfPairs(vector<int>& nums1, vector<int>& nums2, int k) {\n        int n = nums1.size();\n        int m = nums2.
# Code\n```\nclass Solution {\npublic:\n    int numberOfPairs(vector<int>& nums1, vector<int>& nums2, int k) {\n        int n = nums1.size();\n        int m = nums2.size();\n        int ans = 0;\n\n        for(int i=0;i<n;i++)\n        {\n            int temp = nums1[i];\n            for(int j=0;j<m;j++)\n            {\n                if(temp % (nums2[j]*k) == 0)\n                {\n                    ans++;\n                }\n            }\n        }\n\n        return ans;\n    }\n};\n```
['C++']