Description: Title: polynomial multiplication and subtraction
Time limit: 5000 ms
Memory Limit: 8000 K
Total time: 10000 ms
Description: polynomial multiplication and subtraction
There are A, B, C ...... n a polynomial with respect to x, find a polynomial results for A, B, C ...... s
Each separated by a space between polynomials, each coefficient, also separated by a space between x, index, coefficient of entry 0 is not output
Input: Based on the polynomial A, B, C ...... arithmetic expression
A polynomial in x
About polynomial x B
C on the polynomial x
...
Output: The result of the expression
Operation result A, B, C ...... expression contained two decimal places.
The output index sorted in descending order polynomial expressions
Input Sample: (A+ B)* (A-B)
A 1 x 2.1 3 x-3.09
B 2 x 1 2 x 0
Sample output: 1.00 x 4.20-4.00 x 2.00-8.00 x 1.00-4.00 x 0.00 6.00 x-0.99 9.00 x-6.18
To Search:
File list (Check if you may need any files):
a.docx