题目链接:The Phone Number
题意
构造一个 1 1 到 的排列,使得这个排列中最长上升子序列的长度加上最长下降子序列的长度最小。
输入
输入为一个整数 n (1≤105) n ( 1 ≤ 10 5 ) 。
输出
输出 n n 个整数,为 到 n n 的排列,如果有多解输出任意一组。
构造一个 1 1 到 的排列,使得这个排列中最长上升子序列的长度加上最长下降子序列的长度最小。
输入为一个整数 n (1≤105) n ( 1 ≤ 10 5 ) 。
输出 n n 个整数,为 到 n n 的排列,如果有多解输出任意一组。