5 10 5 3 4 2 5 5 3 4 2 100 5 3 4 2 10 5 3 4 3 10 5 10 5 9
6 3 6 0 9 We will describe the first test case. For each $n = 1, 2, \ldots, 10$, the two's levels after doing $n$ learning tasks are as follows. * $X$'s level: $5, 5, 6, 6, 6, 7, 7, 7, 8, 8$. * $Y$'s level: $4, 5, 5, 6, 6, 7, 7, 8, 8, 9$. There are six scenarios ($n = 2, 4, 5, 6, 7, 9$) where the two's levels are equal, so the answer is $6$.
{
"problem": {
"name": "Training",
"description": {
"content": "Two programmers, $X$ and $Y$, are going to start competitive programming. One's skill in competitive programming is represented by a positive integer called the _level_. Initially, $X$'s level is $A_X",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc123_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Two programmers, $X$ and $Y$, are going to start competitive programming.\nOne's skill in competitive programming is represented by a positive integer called the _level_. Initially, $X$'s level is $A_X...",
"is_translate": false,
"language": "English"
}
]
}