#P3909. 异或之积
异或之积
Description
For , compute
$$(6\times \sum_{i=1}^N\sum_{j=i+1}^N\sum_{k=j+1}^N A_i\times A_j\times A_k) \bmod (10^9+7)$$Input Format
Line 1: one integer .
Line 2: integers .
Output Format
One integer, representing the required value.
3
1 2 3
36
Hint
- For 30% of the testdata, .
- For 60% of the testdata, .
- For 100% of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号