{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e 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","sections":[{"title":"","value":{"format":"HTML","content":"\u003ch3\u003eInput\u003c/h3\u003e \n \u003cp\u003eThe first line contains\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e, the number of integers in our list (\u003cstrong\u003eN \u0026lt;\u003d 100,000\u003c/strong\u003e). The next line holds\u0026nbsp;\u003cstrong\u003eN\u003c/strong\u003e\u0026nbsp;numbers that are guaranteed to fit inside an integer. Following the list is a number\u0026nbsp;\u003cstrong\u003eQ\u0026nbsp;\u003c/strong\u003e(\u003cstrong\u003eQ \u0026lt;\u003d 10,000\u003c/strong\u003e). The next\u0026nbsp;\u003cstrong\u003eQ\u003c/strong\u003e\u0026nbsp;lines each contain two numbers\u0026nbsp;\u003cstrong\u003ei\u003c/strong\u003e\u0026nbsp;and\u0026nbsp;\u003cstrong\u003ej\u0026nbsp;\u003c/strong\u003ewhich specify a query you must answer (\u003cstrong\u003e0 \u0026lt;\u003d i, j \u0026lt;\u003d N-1\u003c/strong\u003e).\u003c/p\u003e \n\n\u003c/div\u003e"}},{"title":"Soru","value":{"format":"HTML","content":"N elemanlı bir dizi ici Q adet sorgu geliyor. Her sorguda iki (0-index) konum verilecek $$$i$$$ ve $$$j$$$$, her sorgu icin dizide i den j ye kadar(i ve j dahil) olan elemanlarin toplamini yazdirin."}},{"title":"Input","value":{"format":"HTML","content":"Ilk satirda eleman sayisi olan N verilecek (N \u003c\u003d 100,000) \u003c/br\u003e\nIkinci satirda N tane tamsayi, dizinin elemanlari.\nSonraki satirda Q , sorgu sayisi (Q \u003c\u003d 10,000)\nSonraki Q satirin her biri sorgu icin verilen araligi tanimlamak icin iki sayi i ve j verilecek (0 \u003c\u003d i, j \u003c\u003d N-1)"}},{"title":"","value":{"format":"HTML","content":" \u003ch3\u003eOutput\u003c/h3\u003e \n \u003cp\u003eHer sorgu icin cevabi yazdirin.\u003c/p\u003e \n \u003ch3\u003eExample\u003c/h3\u003e \n \u003cpre\u003e\u003cstrong\u003eInput:\u003c/strong\u003e\n3\u003cbr\u003e1 4 1\u003cbr\u003e3\u003cbr\u003e1 1\u003cbr\u003e1 2\u003cbr\u003e0 2\u003c/pre\u003e \n \u003cpre\u003e\u003cstrong\u003eOutput:\u003c/strong\u003e\n4\u003cbr\u003e5\u003cbr\u003e6\u003c/pre\u003e "}}]}