ez soln. for beginners | beats 100% |please upvote
\n\n# Code\njava []\nclass Solution {\n    public int numberOfPairs(int[] nums1, int[] nums2, int k) {\n        int cnt=0;\n        for(int i=0;i<nums1.length;i
\n\n# Code\n```java []\nclass Solution {\n    public int numberOfPairs(int[] nums1, int[] nums2, int k) {\n        int cnt=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)cnt++;\n            }\n        }\n        return cnt;\n    }\n}\n```
['Java']