#abc339f. F - Product Equality
F - Product Equality
Score: points
问题描述
你已知 个整数 。
找出满足以下条件的整数三元组 的数量:
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given integers .
Find the number of triples of integers that satisfy the following conditions:
Constraints
Input
The input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
5
2
3
6
12
24
Sample Output 1
6
The following six triples satisfy the conditions in the problem statement:
Sample Input 2
11
1
2
3
4
5
6
123456789123456789
123456789123456789
987654321987654321
987654321987654321
121932631356500531347203169112635269
Sample Output 2
40
Note that the values of each integer can be huge.
Sample Input 3
9
4
4
4
2
2
2
1
1
1
Sample Output 3
162
Note that there may be duplicates among the values of .
update @ 2024/3/10 01:31:46