首页 > TAG信息列表 > 非零项

一元多项式求导

设计函数求一元多项式的导数。 输入格式: 以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格式: 以与输入相同的格式输出导数多项式非零项的系数和指数。数字间以空格分隔,但结尾不能有多余空格。   输入样例: 3 4 -5 2 6 1 -2 0

1010一元多项式求导

1010 一元多项式求导 题目输入格式:输出格式:输入样例:输出样例:分析:代码: 题目 设计函数求一元多项式的导数。(注:xn (n为整数)的一阶导数为nx​n−1​​​ 。) 输入格式: 以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过 1000 的整数)。数字间以空格分隔。

PAT 1002 A+B for Polynomials (25分)

题目 This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial: K N​1​​ a​N​1​​ ​​ N​2

1002 A+B for Polynomials (25 分)

1002 A+B for Polynomials (25 分) This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polyn