4 3 2 1 4 3
4 * The minimum number of steps to walk clockwise from rest area $1$ to rest area $2$ is $2$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $1$ to rest area $3$ is $3$, which is a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $1$ to rest area $4$ is $7$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $2$ to rest area $3$ is $1$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $2$ to rest area $4$ is $5$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $2$ to rest area $1$ is $8$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $3$ to rest area $4$ is $4$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $3$ to rest area $1$ is $7$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $3$ to rest area $2$ is $9$, which is a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $4$ to rest area $1$ is $3$, which is a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $4$ to rest area $2$ is $5$, which is not a multiple of $3$. * The minimum number of steps to walk clockwise from rest area $4$ to rest area $3$ is $6$, which is a multiple of $3$. Therefore, there are four possible pairs $(s,t)$.
2 1000000 1 1
0
9 5 9 9 8 2 4 4 3 5 3
11
{
"problem": {
"name": "Pedometer",
"description": {
"content": "There are $N$ rest areas around a lake. The rest areas are numbered $1$, $2$, ..., $N$ in clockwise order. It takes $A_i$ steps to walk clockwise from rest area $i$ to rest area $i+1$ (where rest ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc367_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ rest areas around a lake. \nThe rest areas are numbered $1$, $2$, ..., $N$ in clockwise order. \nIt takes $A_i$ steps to walk clockwise from rest area $i$ to rest area $i+1$ (where rest ...",
"is_translate": false,
"language": "English"
}
]
}