You are given an array of
Constraints
Input Specification
The first line contains an integer,
The next line contains
Output Specification
Output the sum of all subsequence sums modulo
Sample Input
Copy
3
1 2 3
Sample Output
Copy
24
Explanation for Sample
The subsequence sums are
The sum of all subsequence sums is
Comments