what's problem in this code......it's showing WA(7).but working fine on my pc
include
define LL long long
using namespace std;
int main()
{ LL t,i,a,c,b,d,n,sum;
cin>>t;
while(t--)
{
cin>>b>>c>>sum;
n=(sum*2)/(c+b);
d=(c-b)/(n-5);
a=b-2*d;
cout<<n<<endl;
for(i=0;i<n;i++)
{cout<<(a+i*d)<<" ";}
cout<<endl<<endl;
}
return 0;
}
//please reply