3 2 1 2 5 7 1 0 100 10 1312150450968413 28316250877914571 74859962623690078 84324828731963974 148049062628894320 252509054433933439 269587449430302150 335408917861648766 349993004923078531 354979173822804781 522842184971407769 578223540024979436 585335723211047194 615812229161735895 645762258982631926 760713016476190622 779547116602436424 819875141880895723 822981260158260519 919845426262703496
Aoki Aoki Takahashi Here is an example of how the game goes for the first test case. * Each of $1,2,5,6,7$ is written once on the blackboard. * Takahashi chooses to delete the odd numbers. $1,5,7$ are deleted from the blackboard, and the remaining integers $2,6$ are replaced by half their values, that is, $1,3$, respectively. * Aoki chooses to delete the odd numbers. $1,3$ are deleted from the blackboard, and no more integer is written on the blackboard, so the game ends and Aoki, who performed the last operation, wins.
{
"problem": {
"name": "Erase and Divide Game",
"description": {
"content": "Takahashi and Aoki will play the following game. 1. For each $i=1,2,\\ldots,N$ in this order, do the following. * Write each integer from $l_i$ through $r_i$ once on the blackboard. (Here, $l_i",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc064_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi and Aoki will play the following game.\n\n1. For each $i=1,2,\\ldots,N$ in this order, do the following.\n * Write each integer from $l_i$ through $r_i$ once on the blackboard. (Here, $l_i...",
"is_translate": false,
"language": "English"
}
]
}