返回目录 代码: #include<cstdio> #include<cstring> using namespace std; void solve() { if(a!=0&&c!=0&&a==c) printf("circle/n"); else if(a!=0&&c!=0&&a!=c&&a*c>0) printf("ellipse/n"); else if((a==0&&c!=0&&d!=0)||(a!=0&&c==0&&e!=0)) printf("parabola/n"); else if(a!=0&&c!=0&&a!=c&&(a*c)<0) printf("hyperbola/n"); } double a, b, c, d, e, f; int main() { int t; scanf("%d", &t); while(t--) { scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &e, &f); solve(); } }