This time, you are supposed to find A+B where A and B are two polynomials.

Sample Input:
2 1 2.4 0 3.2
2 2 1.5 1 0.5
Sample Output:
3 2 1.5 1 2.9 0 3.2
题干的意思:求两个多项式的和,需要注意的是,输出时要按照输入的格式,指数从高到低的顺序输出,并且与题干一样保留一位小数
题解是一位大神写的,自己的想法很冗杂,看完大神的写法,醍醐灌顶,感慨脑子是个好东西!
代码链接
output=[0 for i in range(1001)]
a=input().split(' ')
b=input().split(' '

最低0.47元/天 解锁文章
&spm=1001.2101.3001.5002&articleId=110622655&d=1&t=3&u=6d8a6f41264343a09b87585435b00227)
955

被折叠的 条评论
为什么被折叠?



