原题传送门
题意:
Consider the set of all non-negative integer powers of 3.
S={ 1,3,9,27,81,...}
Consider the sequence of all subsets of S ordered by the value of the sum of their elements. The question is simple: find the set at the n-th position in the sequence and print it in increasing order of its elements.
简要翻译:
对于一个由 3n 组成的序列,考虑它的所有子集,以该子集中所有数的和作为这个子集的权值,题目要求求出第