Problem Statement
There are $10^{100}$ cookies of each of $N$ types. The deliciousness per cookie of the $i$-th type is $A_i$.
You will choose a total of $K$ cookies from these. Two ways of choosing cookies are considered the same if and only if the multisets of types of chosen cookies match.
For each of the $\binom{N+K-1}{K}$ ways of choosing, consider the sum of deliciousness of the chosen cookies. Let $S_1,S_2,\dots$ be these sums in descending order, with duplicates included. Find $S_1,\dots,S_X$.
Constraints
$1\leq N \leq 50$$1 \leq K \leq 10^5$$1 \leq X \leq \min\left(10^5, \binom{N+K-1}{K}\right)$$-10^9 \leq A_i \leq 10^9$- All input values are integers.
Input
The input is given from Standard Input in the following format:
N K X
A_1 \dots A_N
Output
Let $S_1,S_2,\dots$ be the possible sums of deliciousness of the chosen $K$ cookies in descending order, with duplicates included. Output $S_1,\dots,S_X$ in this order, separated by newlines.
样例
2 4 3
20 10
80
70
60
3 100000 5
-1 -1 -1
-100000
-100000
-100000
-100000
-100000
9 14142 13
31 41 59 26 53 58 97 93 23
1371774
1371770
1371766
1371762
1371758
1371754
1371750
1371746
1371742
1371738
1371736
1371735
1371734
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。