Some error occured while loading page for you. Please try again.
You are given an array of integers, , and a positive integer, . Find and print the number of pairs where and + is divisible by .
The first line contains space-separated integers, and , respectively.
The second line contains space-separated integers describing the respective values of .
Print the number of pairs where and + is evenly divisible by .
1 3 2 6 1 2
Here are the valid pairs: