100 atcoder#ABC177C. [ABC177C] Sum of product of pairs
[ABC177C] Sum of product of pairs
Score : points
Problem Statement
Given are integers .
Find the sum of over all pairs such that , modulo .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print , modulo .
3
1 2 3
11
We have .
4
141421356 17320508 22360679 244949
437235829