Divisible Sum Pairs
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
You are given an array of integers and a positive integer . Find and print the number of pairs where and is divisible by .
Input
The first line contains integer and . The second line contains integers describing the values of .
Output
Print the number of pairs where and is divisible by .
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 61%