#include<stdio.h>
main(){
long long int p,i,j,sum,s3,sl3,n,d,a,t;
scanf("%lld",&p);
for(i=0;i<p;i++){
scanf("%lld %lld %lld",&s3,&sl3,&sum);
n=(sum*2)/(s3+sl3);
printf("%lld\n",n);
d=((sum-n*s3)*2)/(n*(n-5));
a=s3-2*d;
for(j=0;j<n;j++){
t=a+j*d;
printf("%lld ",t);
}
printf("\n");
}
return 0;
}
main(){
long long int p,i,j,sum,s3,sl3,n,d,a,t;
scanf("%lld",&p);
for(i=0;i<p;i++){
scanf("%lld %lld %lld",&s3,&sl3,&sum);
n=(sum*2)/(s3+sl3);
printf("%lld\n",n);
d=((sum-n*s3)*2)/(n*(n-5));
a=s3-2*d;
for(j=0;j<n;j++){
t=a+j*d;
printf("%lld ",t);
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment