2 1 1
2 4 One possible sequence of moves is $(-1,+1,+1,-1)$. Here, Snuke changes his coordinate as $0 \to -1 \to 0 \to 1 \to 0$ and earns two coins. Here are all possible sequences of moves and the number of coins that will be earned. * $(-1,-1,+1,+1)$: one coin * $(-1,+1,-1,+1)$: two coins * $(-1,+1,+1,-1)$: two coins * $(+1,-1,-1,+1)$: two coins * $(+1,-1,+1,-1)$: two coins * $(+1,+1,-1,-1)$: one coin
3 1 2 3
140 220 144
20 16 6 15 19 1 9 6 1 11 7 6 12 3 11 11 18 10 9 15 5
507808441 401798892 110460932 680359166 737048635 442374434 737773176 980506765 473506608 693729211 532774651 621434128 4273369 839437048 585784927 590354055 969740008 825216624 442091194 660636013
{
"problem": {
"name": "Cat Jumps",
"description": {
"content": "You are given a sequence of positive integers $A_1,A_2,\\cdots,A_N$. Let $S=N+\\sum_{1 \\leq i \\leq N}A_i$. Cat Snuke has $S$ cards. Each card has an integer written on it. The integers on the cards are ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "wtf22_day2_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a sequence of positive integers $A_1,A_2,\\cdots,A_N$. Let $S=N+\\sum_{1 \\leq i \\leq N}A_i$.\nCat Snuke has $S$ cards. Each card has an integer written on it. The integers on the cards are ...",
"is_translate": false,
"language": "English"
}
]
}