3164. Find the Number of Good Pairs II
You are given 2 integer arrays
nums1
andnums2
of lengthsn
andm
respectively. You are also given a positive integerk
.A pair
(i, j)
is called good ifnums1[i]
is divisible bynums2[j] * k
(0 <= i <= n - 1
,0 <= j <= m - 1
).Return the total number of good pairs.
c++
1 |
|