
代码展示:
# 3 4 -5 2 6 1 -2 0
# 12 3 -10 1 6 0
data = list(map(eval,input().split()))
result = list()
i = 0
while i < len(data)-1:
coef, exp, = data[i]*data[i+1], data[i+1]-1
if coef != 0:
result.append(coef)
result.append(exp)
i+=2
if len(result) == 0:
result = [0,0]
result = list(map(str,result))
print(" ".join(result))
测评结果:

 #1010 一元多项式求导 25 分&spm=1001.2101.3001.5002&articleId=118230152&d=1&t=3&u=649c41ed6fd94e27b5a114c7f88a12b5)
598

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



