Instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 1

DownloadInstructions
Open PDF In BrowserView PDF
Divisible Sum Pairs
You are given an array of
number of

integers,

pairs where

and

, and a positive integer,
+

is divisible by

. Find and print the

.

Input Format
The first line contains space-separated integers, and , respectively.
The second line contains space-separated integers describing the respective values of
Constraints

Output Format
Print the number of

pairs where

Sample Input
63
132612

Sample Output
5

Explanation
Here are the

valid pairs:

and

+

is evenly divisible by

.

.



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : No
Title                           : 
Creator                         : wkhtmltopdf 0.12.3
Producer                        : Qt 4.8.7
Create Date                     : 2017:05:31 11:58:14Z
Page Count                      : 1
Page Mode                       : UseOutlines
EXIF Metadata provided by EXIF.tools

Navigation menu