Rosetta Problems

ナップザック問題(Expert)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/240