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