// https://atcoder.jp/contests/tricky/tasks/tricky_2 #include #include #include int main(){ int T; long long a,b,c; __float128 d; for(scanf("%d",&T);T--;){ scanf("%lld%lld%lld",&a,&b,&c); if(!a){ if(!b)puts(c?"0":"-1"); else printf("1\n%.12Lf\n",-c*1.0L/b); }else{ if(a<0)a=-a,b=-b,c=-c; d=((__float128)b)*b-((__float128)4)*a*c; if(d<0)puts("0"); else if(d==0)printf("1\n%.12Lf\n",-b/2.0L/a); else{ printf("2\n%.12Lf\n%.12Lf\n",(-b-sqrtl(d))/2/a,(-b+sqrtl(d))/2/a); } } } return 0; }