这种题都不会可以滚回高中了好吗?!
比赛结束前十秒get了这张图。。
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <queue>
#include <cmath>
#include <stack>
#pragma comment(linker, "/STACK:1024000000");
#define EPS (1e-8)
#define LL long long int
#define ULL unsigned long long int
#define _LL __int64
#define _INF 0x3f3f3f3f
#define INF 4000000
#define Mod 1000000009
using namespace std;
int main()
{
double a,b,c,d,e,f;
int T;
cin>>T;
while(T--)
{
cin>>a>>b>>c>>d>>e>>f;
if(b*b-4*a*c < 0)
{
if(a == c && b == 0 && d*d+e*e-4*f > 0)
cout<<"circle"<<endl;
else
cout<<"ellipse"<<endl;
}
else if(b*b-4*a*c == 0)
{
cout<<"parabola"<<endl;
}
else if(b*b-4*a*c > 0)
{
cout<<"hyperbola"<<endl;
}
}
return 0;
}