3 1 3 10 10 6 5 2 1 2
19.500000
If $S$ is chosen to be an empty set, no machine is powered up, so the expected sum of the integers written on the face-up sides of the cards after the procedure is $3+10+5=18$.
If $S$ is chosen to be $\lbrace 1 \rbrace$, machine $1$ is powered up.
* If card $X_1 = 1$ is flipped, the expected sum of the integers written on the face-up sides of the cards after the procedure is $10+10+5=25$.
* If card $Y_1 = 2$ is flipped, the expected sum of the integers written on the face-up sides of the cards after the procedure is $3+6+5=14$.
Thus, the expected value is $\frac{25+14}{2} = 19.5$.
Therefore, the maximum expected value of the sum of the integers written on the face-up sides of the cards after the procedure is $19.5$.1 3 5 100 1 1 1 1 1 1
100.000000 Different machines may have the same $(X_j,Y_j)$.
8 10 6918 9211 16 1868 3857 8537 3340 8506 6263 7940 1449 4593 5902 1932 310 6991 4 4 8 6 3 5 1 1 4 2 5 6 7 5 3 3 1 5 3 1
45945.000000
{
"problem": {
"name": "Flip Machines",
"description": {
"content": "There are $N$ cards numbered $1$ through $N$. Each face of a card has an integer written on it; card $i$ has $A_i$ on its front and $B_i$ on its back. Initially, all cards are face up. There are $M$ m",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc313_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ cards numbered $1$ through $N$. Each face of a card has an integer written on it; card $i$ has $A_i$ on its front and $B_i$ on its back. Initially, all cards are face up.\nThere are $M$ m...",
"is_translate": false,
"language": "English"
}
]
}