Runtime 99.94%
Code\n\nclass Solution {\n    public int numberOfPairs(int[] nums1, int[] nums2, int k) {\n     int res=0;   \n     for(int i=0; i<nums1.length; i++){\n        
# Code\n```\nclass Solution {\n    public int numberOfPairs(int[] nums1, int[] nums2, int k) {\n     int res=0;   \n     for(int i=0; i<nums1.length; i++){\n        for(int j=0; j<nums2.length; j++){\n            if(nums1[i]%(nums2[j]*k)==0) res++;\n        }\n     }\n     return res;\n    }\n}\n```
['Java']