import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
//数据组数
for (int i = 0; i < t; i++) {
int n = sc.nextInt();
int a = sc.nextInt();
int k = sc.nextInt();
//游戏轮数
for (int j = 0; j < k; j++) {
int num = a+j*2+1;
int temp = num;
int flag = 0;
while(temp != 0){
if(temp % 10 == 7){
flag = 1;
break;
}
temp = temp / 10;
}
if(num % 7 == 0 || flag == 1){
System.out.print("p ");
}else{
System.out.print(num + " ");
}
}
}
}
}
JAVA习题疑惑_1
最新推荐文章于 2024-10-31 15:56:11 发布