The statement of this problem is similar to the previous one. But here, you must solve a different problem:
Given a collection of coins , how many subsets of are such that ?
Input consists of several cases, each one with followed by . Assume and .
For every case, print the number of subsets such that . Since this number can be huge, compute it modulo .
Author: Salvador Roura
Generation: 2026-01-25T10:08:27.574Z
© Jutge.org, 2006–2026.
https://jutge.org