摘要:
#题目描述 给定K个整数组成的序列{ N1, N2, ..., NK },“连续子列”被定义为{ Ni, Ni+1, ..., Nj },其中 1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, - 阅读全文
摘要:
#多项式的表示 多项式的关键数据: 多项式项数 各项系数ai及指数i ##顺序存储结构表示非零项 ##链式存储结构表示非零项 #多项式的运算 ##加法(减法) Compare函数,比较P1和P2的指数大小,P1大返回1,P2大返回-1,相等返回0 Attach函数:将计算结果复制到结果多项式 ##乘 阅读全文