You are given two integer arrays nums1 and nums2 of lengths n and m respectively, and a positive integer k.
A pair (i, j) is defined as good if nums1[i] is divisible by nums2[j] $ imes$ k.
Return the total count of good pairs.
Constraints:
n, m
nums1[i], nums2[j]
k
You are given two integer arrays nums1 and nums2 of lengths n and m respectively, and a positive integer k.
A pair (i, j) is defined as good if nums1[i] is divisible by nums2[j] $ imes$ k.
Return the total count of good pairs.
Constraints:
n, m
nums1[i], nums2[j]
k