Write a program that, given a natural number and different words , prints all the subsets of elements that can be made up with the words.
Input consists of two natural numbers and , followed by . Assume and .
Print all the subsets of words that can be made up with .
You can print in any order both the solutions and the elements inside each solution.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T10:19:03.111Z
© Jutge.org, 2006–2026.
https://jutge.org