作业帮 > 英语 > 作业

英语翻译Problem DescriptionConsider the aggregate An= { 1,2,…,n

来源:学生作业帮 编辑:大师作文网作业帮 分类:英语作业 时间:2024/09/26 05:26:14
英语翻译
Problem Description
Consider the aggregate An= { 1,2,…,n }.For example,A1={1},A3={1,2,3}.A subset sequence is defined as a array of a non-empty subset.Sort all the subset sequece of An in lexicography order.Your task is to find the m-th one.
Input
The input contains several test cases.Each test case consists of two numbers n and m ( 0< n
英语翻译Problem DescriptionConsider the aggregate An= { 1,2,…,n
问题描述
设想一个集合An={1,2,...,n}.例如,A1={1},A3={1,2,3}.我们又定义,子集序列是非空子集(里面的数字组成的)数组.接着我们要按照词典顺序,列出An的所有的子集序列.你的任务是找到这些序列当中的第m个.
输入
输入的东西是一系列数字组合.每个数字组合含有两个数字:n和m(0