P1243 Sorting Subsets

Description

For subsets of $N=\{1,2,\cdots,n\}$, define a relation called "less than": Let $S1=\{X_1,X_2,\cdots,X_i\}$, $(X_1

Input Format

The input file contains a single line with two natural numbers, $n$ and $k$, separated by a space.

Output Format

Output a single line listing the elements of the subset in increasing order. Output $0$ for the empty set.

Explanation/Hint

Translated by ChatGPT 5