作业帮 > 英语 > 作业

英语翻译This time,you are supposed to find A+B where A and B are

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:英语作业 时间:2024/05/16 05:37:35
英语翻译
This time,you are supposed to find A+B where A and B are two polynomials.
Input
Each input file contains one test case.Each case occupies 2 lines,and each line contains the information of a polynomial:K N1 aN1 N2 aN2 ...NK aNK,where K is the number of nonzero terms in the polynomial,Ni and aNi (i=1,2,...,K) are the exponents and coefficients,respectively.It is given that 1
英语翻译This time,you are supposed to find A+B where A and B are
这次,要求你找到 A+B,A,B为多项式
输入:
每个输入文件包含一个测试用例.每个测试用例占两行,每行包含一个多项式的信息,K N1 aN1 N2 aN2 ...Nk aNk,K表示多项式中一段非零的项目,Ni 和 aNi表示 相对应的指数和系数.假设 1