Problem1092--数据结构概论上机考试四-1092

1092: 数据结构概论上机考试四-1092

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 358  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

用链表实现两个二元二次多项式相减。

Input

第一行输入的数依次为:x,y,xy,x2,y2,x2y,xy2的系数,被减的多项式系数输入在第一行;

第二行输入的数依次为:x2,y2,x,y,xy,x2y,xy2的系数

Output

第一行输入的数依次为:x,y,xy,x2,y2,x2y,xy2的系数,被减的多项式系数输入在第一行;

第二行输入的数依次为:x2,y2,x,y,xy,x2y,xy2的系数

Sample Input Copy

0 0 2 1 1 1 1
3 1 0 0 1 0 0

Sample Output Copy

1 -2 1 1

Source/Category