Home => ProblemSet => 2004:分解
Problem2188--2004:分解

2188: 2004:分解

Time Limit: 1 Sec  Memory Limit: 256 MB  Submit: 0  Solved: 0
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

小V爱学习

Input

输入一行,代表给定的多项式。

Output

输出一行,代表分解后的多项式。

Sample Input Copy

x^3+3x^2+3x+1

Sample Output Copy

(x+1)^3

HINT

样例二:
输入:
x^3+2x^2-5x-6
输出:
(x-2)(x+1)(x+3)



Source/Category