Write a program that, given three numbers , and , prints all the multisets that can be made up with , in such a way that every number appears between and times.
Input consists of a natural number , followed by a natural number , followed by a natural number .
Print all the multisets that can be made up with , using each number between and times. The numbers inside each multiset must appear in non-decreasing order.
You can print the solutions to this exercise in any order.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:36:44.947Z
© Jutge.org, 2006–2026.
https://jutge.org