(多项式特性4.7.7)POJ 2126 Factoring a Polynomial(判断一个多项式能否被分解)
来源:互联网 发布:淘宝网数据包 编辑:程序博客网 时间:2024/05/18 10:21
/* * POJ_2126.cpp * * Created on: 2013年10月26日 * Author: Administrator */#include <iostream>#include <cstdio>using namespace std;int main() {int n;while (scanf("%d", &n) != EOF) {/** * 一个多项式是否能被分解的原则: * n < 2 :不能被分解 * n > 2 :能被分解 * n == 2 :若b^2 - 4*a*c >= 0 则能被分解 */if (n < 2) {int a;int i;for (i = 0; i <= n; ++i) {scanf("%d", &a);}printf("YES\n");} else if (n > 2) {int a;int i;for (i = 0; i <= n; ++i) {scanf("%d", &a);}printf("NO\n");} else {int a, b, c;scanf("%d%d%d", &a, &b, &c);if (b * b - 4 * a * c >= 0) {printf("NO\n");} else {printf("YES\n");}}}return 0;}
- (多项式特性4.7.7)POJ 2126 Factoring a Polynomial(判断一个多项式能否被分解)
- poj 2126 Factoring a Polynomial 数学多项式分解
- POJ 2126 / ZOJ 2431 : Factoring a Polynomial - 易(判断多项式是否能够分解)
- POJ-2426 Factoring a Polynomial-能否分解
- POJ 2126 Factoring a Polynomial 多项式运算 水
- POJ 2126 Factoring a Polynomial
- POJ 2126 Factoring a Polynomial
- (多项式运算4.7.6)POJ 2527 Polynomial Remains(多项式除法)
- 多项式Polynomial
- POJ 2527 : Polynomial Remains - 多项式除法
- POJ 2527 Polynomial Remains 多项式运算
- POJ-2527 Polynomial Remains-多项式相除
- D - Factoring a Polynomial
- Polynomial类 多项式
- poj 2527 Polynomial Remains 模拟多项式的除法
- polynomial 一元多项式加法实现
- polynomial 一元多项式乘法实现
- uva10105 - Polynomial Coefficients(多项式系数)
- linux .xz解压和创建
- 项目开发环境配置问题收集平台
- cserrise修改对话框图标
- List<> ArrayList
- Android中Proguard和JNI的相关问题
- (多项式特性4.7.7)POJ 2126 Factoring a Polynomial(判断一个多项式能否被分解)
- VS2010更改MFC标题栏图标和生成的执行文件图标
- cocos2d-x -CCSpriteFrameCache-CCAnimation
- Querying the X$ structures
- js框架开发之旅--选择器二
- 把打包好的hex格式的文件转化成bin文件格式
- 子div的margin属性影响到父div的定位
- 调整SQLPlus show parameter命令显示结果列宽
- IOS7开发~解决UIImagePickerController出现时候显示StatusBar