4 4 6 10 1000000000
0
11
4598
257255556
* When $N=4$, there is no possible choice $(s_1,s_2,n_1,n_2,u_1,u_2,k_1,k_2,e_1,e_2)$. Thus, the answer is $0$.
* When $N=6$, there are six possible choices $(s_1,s_2,n_1,n_2,u_1,u_2,k_1,k_2,e_1,e_2)$ as follows:
* $(0,1,0,1,0,1,0,1,0,1)$
* $(0,2,0,1,0,1,0,1,0,1)$
* $(0,1,0,2,0,1,0,1,0,1)$
* $(0,1,0,1,0,2,0,1,0,1)$
* $(0,1,0,1,0,1,0,2,0,1)$
* $(0,1,0,1,0,1,0,1,0,2)$
* We have one choice where $(s_2 − s_1)(n_2 − n_1)(u_2 − u_1)(k_2 - k_1)(e_2 - e_1)$ is $1$ and five choices where $(s_2 − s_1)(n_2 − n_1)(u_2 − u_1)(k_2 - k_1)(e_2 - e_1)$ is $2$, so the answer is $11$.
* Be sure to find the sum modulo $(10^{9} +7)$.{
"problem": {
"name": "Two Snuke",
"description": {
"content": "Given is an integer $N$. Snuke will choose integers $s_1$, $s_2$, $n_1$, $n_2$, $u_1$, $u_2$, $k_1$, $k_2$, $e_1$, and $e_2$ so that all of the following six conditions will be satisfied: * $0 \\leq",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "aising2020_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given is an integer $N$. Snuke will choose integers $s_1$, $s_2$, $n_1$, $n_2$, $u_1$, $u_2$, $k_1$, $k_2$, $e_1$, and $e_2$ so that all of the following six conditions will be satisfied:\n\n* $0 \\leq...",
"is_translate": false,
"language": "English"
}
]
}