import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t=sc.nextInt();
while (t-->0){
int n=sc.nextInt();//字符串长度
int k=sc.nextInt();
for (int i = n-k; i <=n ; i++) {
System.out.println(i+" ");
}
for (int i = n-k-1; i >0 ; i--) {
System.out.println(i+" ");
}
}
}
}
codeforces-div3-B
最新推荐文章于 2024-11-11 21:19:25 发布