cf/mirror

Subset Sums

CF
348C2500· grandmaster3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5 3 5
5 -5 5 1 -4
2 1 2
4 2 1 4 5
2 2 5
? 2
+ 3 4
? 1
+ 2 1
? 2
Output
-3
4
9
348C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)