API Response (JSON)
{
"problem": {
"name": "[SEERC 2020] Divisible by 3",
"description": {
"content": "定义一个序列 $b$ 的权重为 $\\sum_{i=1}^n \\sum_{j=1}^{i-1} b_i \\times b_j$。 现在你有一个长度为 $n$ 的数组 $a$,求一共存在多少种 $(l,r)$ 使得 $1 \\leq l \\leq r \\leq n$ 且 $[a_l, a_{l+1},\\ldots,a_r]$ 的权重能被 $3$ 整除。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": {
"LuoguStyle": "P3"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10740"
},
"statements": [
{
"statement_type": "Markdown",
"content": "定义一个序列 $b$ 的权重为 $\\sum_{i=1}^n \\sum_{j=1}^{i-1} b_i \\times b_j$。\n\n现在你有一个长度为 $n$ 的数组 $a$,求一共存在多少种 $(l,r)$ 使得 $1 \\leq l \\leq r \\leq n$ 且 $[a_l, a_{l+1},\\ldots,a_r]$ 的权重能被 $3$ 整除。\n\n## Input\n\n第一行一个整数 $n\\ (...",
"is_translate": false,
"language": "English"
}
]
}