3 2 4
1728 One possible series of operations is as follows: * Choose $S_0=\lbrace 1,2,3,4,5,6\rbrace$, let $a=2$ and $b=5$, and let $S_1 =\lbrace 1,2,3,6\rbrace$ and $S_2=\lbrace 4,5\rbrace$. There are now two sets of integers written on the blackboard: $\lbrace 1,2,3,6\rbrace$ and $\lbrace 4,5\rbrace$. * Choose $S_0=\lbrace 1,2,3,6\rbrace$, let $a=1$ and $b=3$, and let $S_1 = \lbrace1,2\rbrace$ and $S_2=\lbrace 3,6\rbrace$. There are now three sets of integers written on the blackboard: $\lbrace 1,2\rbrace$, $\lbrace 3,6\rbrace$, and $\lbrace 4,5\rbrace$.
4 1 3
6 If we let $a=1$ and $b=2$ and let $S_1 = \lbrace 1\rbrace$ and $S_2 = \lbrace 2,3,4\rbrace$ in the first operation, we can no longer perform the second and subsequent operations. Do not count these cases where we cannot complete $N-1$ operations.
5 6 6
84486693
173173 173173 173173
446948086
{
"problem": {
"name": "Select and Split",
"description": {
"content": "There is a blackboard with a set of positive integers written on it. Initially, the set $S=\\lbrace 1,2,\\dots,A,A+1,A+2,\\dots,A+B\\rbrace$ is written on the blackboard. Takahashi wants to perform the fo",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc173_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a blackboard with a set of positive integers written on it. Initially, the set $S=\\lbrace 1,2,\\dots,A,A+1,A+2,\\dots,A+B\\rbrace$ is written on the blackboard.\nTakahashi wants to perform the fo...",
"is_translate": false,
"language": "English"
}
]
}