3 6 9 12
2 The possible values of the last remaining number are $3$ and $6$. We will have $3$ in the end if, for example, we do as follows: * choose $9, 12$ and erase them from the blackboard, then write $\gcd(9, 12) = 3$; * choose $6, 3$ and erase them from the blackboard, then write $\min(6, 3) = 3$. Also, we will have $6$ in the end if, for example, we do as follows: * choose $6, 12$ and erase them from the blackboard, then write $\gcd(6, 12) = 6$; * choose $6, 9$ and erase them from the blackboard, then write $\min(6, 9) = 6$.
4 8 2 12 6
1 $2$ is the only number that can remain on the blackboard.
7 30 28 33 49 27 37 48
7 $1$, $2$, $3$, $4$, $6$, $7$, and $27$ can remain on the blackboard.
{
"problem": {
"name": "GCD or MIN",
"description": {
"content": "There are $N$ integers $A_1, A_2, A_3, \\dots, A_N$ written on a blackboard. You will do the following operation $N - 1$ times: * Choose two numbers written on the blackboard and erase them. Let $",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc191_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ integers $A_1, A_2, A_3, \\dots, A_N$ written on a blackboard. \nYou will do the following operation $N - 1$ times:\n\n* Choose two numbers written on the blackboard and erase them. Let $...",
"is_translate": false,
"language": "English"
}
]
}