CF1818B Indivisible
题目描述
给定一个整数 $n$。
你需要构造一个一个长度为 $n$ 的排列 $A$,使得对于任意一对 $l,r$($1\le l
输入格式
输入一个 $t(1\le t\le 100)$ 表示数据组数。
每组数据一行一个整数 $n(1\le n\le100)$,即排列的长度。
输出格式
对于每组数据,若所求排列不存在,输出 `-1`,否则输出任意一个合法的排列。
说明/提示
In the first example, there are no valid pairs of $ l < r $ , meaning that the condition is true for all such pairs.
In the second example, the only valid pair is $ l=1 $ and $ r=2 $ , for which $ a_1 + a_2 = 1+2=3 $ is not divisible by $ r-l+1=2 $ .
in the third example, for $ l=1 $ and $ r=3 $ the sum $ a_1+a_2+a_3 $ is always $ 6 $ , which is divisible by $ 3 $ .