#P2964. 第2题-排列构造

    ID: 2599 Tried: 33 Accepted: 7 Difficulty: 5 所属公司 : 阿里 时间 :2025年5月17日-阿里淘天(算法岗)
      算法标签>构造

第2题-排列构造

题目内容

对于一个排列pp,其下标从11开始,通过以下规则得到长度为n1n-1的数组aa

image