#P2415. 集合求和
集合求和
Description
Given a set (the number of elements ), compute the sum of elements over all subsets of this set.
Input Format
The elements in the set (each element ).
Output Format
The sum of elements over all subsets of .
2 3
10
Hint
[Sample Explanation]
The subsets are: , and the total is .
[Constraints]
For of the testdata, , , and the sum of elements over all subsets of is .
Translated by ChatGPT 5
京公网安备 11011102002149号