3 2 6 6
2
* At the beginning of the procedure, the numbers written on Snuke's cards are $(2,6,6)$.
* Since $x=2$ and $X=6$, he replaces each card on which $6$ is written with a card on which $4$ is written.
* Now, the numbers written on Snuke's cards are $(2,4,4)$.
* Since $x=2$ and $X=4$, he replaces each card on which $4$ is written with a card on which $2$ is written.
* Now, the numbers written on Snuke's cards are $(2,2,2)$.
* Since $x=2$ and $X=2$, he terminates the procedure.15 546 3192 1932 630 2100 4116 3906 3234 1302 1806 3528 3780 252 1008 588
42
{
"problem": {
"name": "MAX-=min",
"description": {
"content": "Snuke had $N$ cards numbered $1$ through $N$. Each card has an integer written on it; written on Card $i$ is $a_i$. Snuke did the following procedure: 1. Let $X$ and $x$ be the maximum and minimum v",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc105_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Snuke had $N$ cards numbered $1$ through $N$. Each card has an integer written on it; written on Card $i$ is $a_i$.\nSnuke did the following procedure:\n\n1. Let $X$ and $x$ be the maximum and minimum v...",
"is_translate": false,
"language": "English"
}
]
}