#1953. 倍数对统计
倍数对统计
Background
Special for beginners, ^_^
Description
给定一个长度为 的数组 ,求
$ \sum_{i = 1} ^ {n}\sum_{j = i + 1} ^ {n}[a_j \mid a_i ^ 2] $。
Format
Input
输入的第一行包含一个正整数 。
输入的第二行包含 个随机正整数 。
Output
输出满足要求的数对个数。
Samples
5
9 4 3 2 1
6
Limitation
1s, 1024KiB for each test case.