这种题,首先要理清空格数和数字之间的和个数 第一题输入n层 第i层有i个数字 n-i个空 第二题输入n层有 i-1个空格 有n-i个数 输入n层有n-i个空格有i个数字 但是降序排序 输入n个层数有n-i个数 有i-1个空格