Given an integer array nums, return the number of distinct triplets of indices (i, j, k) such that:
i, j, k nums.length
i, j, and k are pairwise distinct
The sum nums[i] nums[j] nums[k] is divisible by exactly one of nums[i], nums[j], or nums[k]
Constraints:
nums.length
nums[i]
Given an integer array nums, return the number of distinct triplets of indices (i, j, k) such that:
i, j, k nums.length
i, j, and k are pairwise distinct
The sum nums[i] nums[j] nums[k] is divisible by exactly one of nums[i], nums[j], or nums[k]
Constraints:
nums.length
nums[i]