My issue
what is my mistake
My code
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
for(int k=0;k<t;k++)
{
int a=sc.nextInt();
long b=sc.nextLong();
long arr[]=new long[a];
for(long i=1;i<9000000000L;i++)
{
for(long j=2;j<9000000000L;j++)
{
if(((i+j)<=b) ||((i+b)<=j) ||((j+b)<=i))
{
arr[0]=i;
arr[1]=j;
break;
}
}
break;
}
int o=1;
for(int i=2;i<a;i++)
{
arr[i] =arr[o] + b;
o++;
}
for(int i=0;i<a;i++)
{
System.out.print(arr[i]+" ");
}
System.out.println();
}
}
}
Problem Link: Anti-Triangle Practice Coding Problem - CodeChef