{"trustable":false,"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":"给定长度为N的序列S。定义sum(i , j) \u003d s[i] + ... + s[j]。给定m,求m段sum(i1, j1) + ... + sum(im,jm)。且没有ix \u003c\u003d iy \u003c\u003djx。"}},{"title":"Input","value":{"format":"HTML","content":"输入m,输入n。输入n个数。"}},{"title":"Output","value":{"format":"HTML","content":"输出最大和"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1 3 1 2 3\n2 6 -1 4 -2 3 -2 3\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e6\n8\n\n\n \n \u003ci style\u003d\"font-size:1px\"\u003e \u003c/i\u003e\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cpre\u003e\nHuge input, scanf and dynamic programming is recommended.\n\n \n \u003c/pre\u003e"}}]}