|Online Judge||Problem Set||Authors||Online Contests||User|
Given a polynomial and a number t, please convert it into an equivalent polynomial in the form of .
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.
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 2
3 4 2
[Submit] [Go Back] [Status] [Discuss]
Home Page Go Back To top
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator