#2146. 3151. [Ctsc2013]因式分解

3151. [Ctsc2013]因式分解

#3151. [Ctsc2013]因式分解

题目描述

![image](file://1(9).jpg)

输入格式

![image](file://2(2).jpg)

输出格式

image

样例

样例输入

8x^7-258x^5+2112x^3-512x 

样例输出

8(x-4)^2(x-1/2)x(x+1/2)(x+4)^2 

数据范围与提示

![image](file://1(10).jpg)