{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"PLAIN","content":"Cho dãy A có N số. Tìm số cách để chia A thành một số dãy con liên tục từ trái qua phải, sao cho dãy con thứ i có tổng các phần tử của nó chia hết cho i.\n\nIn ra đáp án ở mod 10^9 + 7."}},{"title":"Constraints","value":{"format":"PLAIN","content":"N \u003c\u003d 3000\nA_i \u003c\u003d 10^15"}},{"title":"Input","value":{"format":"PLAIN","content":"N\nA_1 A_2 ... A_N"}},{"title":"Sample Input 1","value":{"format":"PLAIN","content":"4\n1 2 3 4\n"}},{"title":"Sample Output 1","value":{"format":"PLAIN","content":"3\n"}},{"title":"Sample Input 2","value":{"format":"PLAIN","content":"5\n8 6 3 3 3\n"}},{"title":"Sample Output 2","value":{"format":"PLAIN","content":"5\n"}},{"title":"Sample Input 3","value":{"format":"PLAIN","content":"10\n791754273866483 706434917156797 714489398264550 918142301070506 559125109706263 694445720452148 648739025948445 869006293795825 718343486637033 934236559762733\n"}},{"title":"Sample Output 3","value":{"format":"PLAIN","content":"15"}}]}