#P3742. Equivalent Polynomial
Equivalent Polynomial
Description
Given a polynomial  and a number t, please convert it into an equivalent polynomial in the form of
 and a number t, please convert it into an equivalent polynomial in the form of  .
. 
 and a number t, please convert it into an equivalent polynomial in the form of
 and a number t, please convert it into an equivalent polynomial in the form of  .
. Input
The input contains several test cases.
The first line of each test case gives two integer n (1 < n ≤ 200) and t (-10 ≤ t ≤ 10). The following line is a sequence of n integer a0,a1, ... ,an (-1000 ≤ ai ≤ 1000), which is separated by exactly one space.
The first line of each test case gives two integer n (1 < n ≤ 200) and t (-10 ≤ t ≤ 10). The following line is a sequence of n integer a0,a1, ... ,an (-1000 ≤ ai ≤ 1000), which is separated by exactly one space.
Output
For each test case, output the equivalent polynomial's coefficient b0,b1, ... ,bn. One line for each test case and each number is separated by exactly one space, no extra space at the end of each line. 
2 1
1 0 23 4 2Source
POJ Monthly Contest - 2009.08.23, wjn
