UVA12911 Subset sum

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4776 [PDF](https://uva.onlinejudge.org/external/129/p12911.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12911/7bb7f285cca252bfcf9713c00cb73f66c992a7df.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12911/d7f3aa694e719fe9b79151f6efc45145f8731d3f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12911/b6358a0d6d3ab8442a74f1aba3d8698f48c01767.png)