5 7
3 The integers $x=3,6,9$ all satisfy the condition as follows: * When $x=3$, for example, arranging $x,A,B$ forms the arithmetic sequence $3,5,7$. * When $x=6$, for example, arranging $B,x,A$ forms the arithmetic sequence $7,6,5$. * When $x=9$, for example, arranging $A,B,x$ forms the arithmetic sequence $5,7,9$. Conversely, there are no other values of $x$ that satisfy the condition. Therefore, the answer is $3$.
6 1
2 Only $x=-4$ and $11$ satisfy the condition.
3 3
1 Only $x=3$ satisfies the condition.
{
"problem": {
"name": "369",
"description": {
"content": "You are given two integers $A$ and $B$. How many integers $x$ satisfy the following condition? * Condition: It is possible to arrange the three integers $A$, $B$, and $x$ in some order to form an a",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc369_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given two integers $A$ and $B$.\nHow many integers $x$ satisfy the following condition?\n\n* Condition: It is possible to arrange the three integers $A$, $B$, and $x$ in some order to form an a...",
"is_translate": false,
"language": "English"
}
]
}