Almost All Divisors

medium
https://codeforces.com/problemset/problem/1165/D

Input Format

Check Link

Output Format

Check Link

Constraints

Check Link

Example

Input
2
8
8 2 12 6 4 24 16 3
1
2
Output
48
4
Previous
Jumps
Next
Points

Related Questions