{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eRXD has a polynomial function $f(x)$, $f(x) \u003d \\sum_{i \u003d 0}^{n}{c_ix^i}$\u003cbr\u003eRXD has a transformation of function $Tr(f, a)$, it returns another function $g$, which has a property that $g(x) \u003d f(x - a)$.\u003cbr\u003eGiven $a_1, a_2, a_3, \\dots , a_m$, RXD generates a polynomial function sequence $g_i$, in which $g_0 \u003d f$ and $g_i \u003d Tr(g_{i - 1}, a_i)$\u003cbr\u003eRXD wants you to find $g_m$, in the form of $\\sum_{i \u003d 0}^{m}{b_ix^i}$\u003cbr\u003eYou need to output $b_i$ module 998244353.\u003cbr\u003e$n\\leq 10^5$\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"There are several test cases, please keep reading until EOF.\u003cbr\u003eFor each test case, the first line consists of 1 integer $n$, which means $\\deg F$.\u003cbr\u003eThe next line consists of $n + 1$ intergers $c_i, 0 \\leq c_i \u0026lt; 998244353$, which means the coefficient of the polynomial.\u003cbr\u003eThe next line contains an integer $m$, which means the length of $a$.\u003cbr\u003eThe next line contains $m$ integers, the i - th integer is $a_i$.\u003cbr\u003eThere are 11 test cases.\u003cbr\u003e$0\u0026lt;\u003dai\u0026lt;998244353$\u003cbr\u003e$\\sum m\\leq 10^5$"}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output an polynomial with degree n, which means the answer."}},{"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\r\n0 0 1\r\n1\r\n1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1 998244351 1 \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":"\u003cbr\u003e$(x - 1) ^ 2 \u003d x^2 - 2x + 1$\u003cbr\u003e"}}]}