The 8th Zhejiang Provincial Collegiate Programming Contest / B - Conic Section
2011-04-16 18:15
483 查看
返回目录
代码:
代码:
]#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(); } }
相关文章推荐
- The 8th Zhejiang Provincial Collegiate Programming Contest->B - Conic Section
- The 8th Zhejiang Provincial Collegiate Programming Contest / B - Conic Section
- The 8th Zhejiang Provincial Collegiate Programming Contest / M - Median
- The 8th Zhejiang Provincial Collegiate Programming Contest / M - Median
- The 8th Zhejiang Provincial Collegiate Programming Contest->A - Ordinal Numbers
- The 8th Zhejiang Provincial Collegiate Programming Contest / D - String Successor
- The 8th Zhejiang Provincial Collegiate Programming Contest / D - String Successor
- The 8th Zhejiang Provincial Collegiate Programming Contest-> Kagome Kagome
- The 8th Zhejiang Provincial Collegiate Programming Contest->M - Median
- The 8th Zhejiang Provincial Collegiate Programming Contest
- The 8th Zhejiang Provincial Collegiate Programming Contest / 解题报告 11.4.16
- The 8th Zhejiang Provincial Collegiate Programming Contest / 解题报告 11.4.16
- The 8th Zhejiang Provincial Collegiate Programming Contest / A - Ordinal Numbers
- The 8th Zhejiang Provincial Collegiate Programming Contest / A - Ordinal Numbers
- The 8th Zhejiang Provincial Collegiate Programming Contest / F - Kagome Kagome
- The 8th Zhejiang Provincial Collegiate Programming Contest / F - Kagome Kagome
- The 8th Zhejiang Provincial Collegiate Programming Contest / L - Javabeans
- The 8th Zhejiang Provincial Collegiate Programming Contest / L - Javabeans
- ZOJ-The 14th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple-C
- The 12th Zhejiang Provincial Collegiate Programming Contest