3 7 1 2 2 3 1 3 3
1 1 2 2 1 1 3 Let $C_i$ denote the number of votes for candidate $i$. * After the first vote is counted, $(C_1, C_2, C_3) = (1, 0, 0)$, so the winner is $1$. * After the second vote is counted, $(C_1, C_2, C_3) = (1, 1, 0)$, so the winner is $1$. * After the third vote is counted, $(C_1, C_2, C_3) = (1, 2, 0)$, so the winner is $2$. * After the fourth vote is counted, $(C_1, C_2, C_3) = (1, 2, 1)$, so the winner is $2$. * After the fifth vote is counted, $(C_1, C_2, C_3) = (2, 2, 1)$, so the winner is $1$. * After the sixth vote is counted, $(C_1, C_2, C_3) = (2, 2, 2)$, so the winner is $1$. * After the seventh vote is counted, $(C_1, C_2, C_3) = (2, 2, 3)$, so the winner is $3$.
100 5 100 90 80 70 60
100 90 80 70 60
9 8 8 8 2 2 8 8 2 2
8 8 8 2 8 8 8 2
{
"problem": {
"name": "Election Quick Report",
"description": {
"content": "There is an election to choose one winner from $N$ candidates with candidate numbers $1, 2, \\ldots, N$, and there have been $M$ votes cast. Each vote is for exactly one candidate, with the $i$\\-th vot",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc329_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is an election to choose one winner from $N$ candidates with candidate numbers $1, 2, \\ldots, N$, and there have been $M$ votes cast.\nEach vote is for exactly one candidate, with the $i$\\-th vot...",
"is_translate": false,
"language": "English"
}
]
}