#P1243. 排序集合
排序集合
Description
For subsets of , define a relation called "less than":
Let , , , . If there exists a , , such that , and or , then is said to be "less than" .
Your task is, for any and , to find the -th smallest subset.
Input Format
The input file contains a single line with two natural numbers, and , separated by a space.
Output Format
Output a single line listing the elements of the subset in increasing order. Output for the empty set.
3 4
1 2 3
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号