Problem1091--数据结构概论上机考试四-1091

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

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 287  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 0 1
1 1 0 0 3 0 0

Sample Output Copy

5 2 2 1

Source/Category