Write a program to print all the combinations of zeros and ones, for some given and .
Input consists of and , two natural numbers such that and .
Print all the combinations of zeros and ones, one per line and in lexicographical order.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:20:25.115Z
© Jutge.org, 2006–2026.
https://jutge.org