API Response (JSON)
{
"problem": {
"name": "【深进1.例1】求区间和",
"description": {
"content": "给定 $n$ 个正整数组成的数列 $a_1, a_2, \\cdots, a_n$ 和 $m$ 个区间 $[l_i,r_i]$,分别求这 $m$ 个区间的区间和。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P2"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB3612"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定 $n$ 个正整数组成的数列 $a_1, a_2, \\cdots, a_n$ 和 $m$ 个区间 $[l_i,r_i]$,分别求这 $m$ 个区间的区间和。\n\n## Input\n\n第一行包含一个正整数 $n$,表示序列的长度。\n\n第二行包含 $n$ 个正整数 $a_1,a_2, \\cdots ,a_n$。\n\n第三行包含一个正整数 $m$,表示区间的数量。\n\n接下来 $m$ 行,每行包含两个正整...",
"is_translate": false,
"language": "English"
}
]
}