{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"用户输入一个字符串,形如 51+3x-4x^2+x^4的多项式.设x\u003d3,编写程序,计算多项式的值。说明: \u003cbr\u003e1)x的系数是整数,系数为1时,省略不写(见例子中的第4项)。\u003cbr\u003e2)运算符只有+,-;\u003cbr\u003e2)整个字符串不包含空格,多项式中的字母x皆为小写;\u003cbr\u003e3)指数为0时,x省略(见例子第1项),前一项的指数小于后一项的指数,每一项的指数不重复,相邻的两项的指数有可能不连续(见例子中第3项和第4项)。\u003cbr\u003e4)假设不会溢出。\u003cbr\u003e5) 指数和系数都可能是多位\u003cbr\u003e"}},{"title":"Input","value":{"format":"HTML","content":"若干个多项式表达式.字符串,不超过30位."}},{"title":"Output","value":{"format":"HTML","content":"多项式的值.int型数值"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2+x+3x^2\r\n51+3x-4x^2+x^4\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e32\r\n105\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"可以使用数学函数pow来求x的n次方."}}]}