<Submit a solution> [
0/1]
Task statisticsNumber of users: 90
Number of users with 1 points: 64
Average result: 0.7111
Divisors
Memory limit: 256 MB
You are given a sequence of integers .
You should determine the number of such ordered pairs , that , and is a divisor of .
Input
The first line of input contains one integer ().
The second line contains a sequence of integers ().
Output
In the first and only line of output should contain one integer, denoting the number of pairs sought.
Example
For the input data:
5
2 4 5 2 6
the correct result is:
6
Explanation of the example:
There are pars with the specified properties: , , , , , .
Task author: Jakub Lacki.
<Submit a solution> [
0/1]