10 3 oxxoxooxox
oxxoxoxxxx In this input, $N=10$ people took part in the qualification round, and $K=3$ of them advance to the final. * The participant who ranked $1$\-st in the qualification wants to participate in the final, so the participant advances to the final. $1$ participant has advanced so far. * The participants who ranked $2$\-nd and $3$\-rd in the qualification do not want to participate in the final, so the participants do not advance to the final. * The participant who ranked $4$\-th in the qualification wants to participate in the final, so the participant advances to the final. $2$ participants have advanced so far. * The participants who ranked $5$\-th in the qualification does not want to participate in the final, so the participant does not advance to the final. * The participant who ranked $6$\-th in the qualification wants to participate in the final, so the participant advances to the final. $3$ participants have advanced so far. * Now that $3$ people have advanced to the final, no participants ranked $7$\-th or lower advance to the final.
{
"problem": {
"name": "Qual B",
"description": {
"content": "There were $N$ contestants in the qualification round of a programming contest. All contestants got distinct ranks. You are given a length-$N$ string $S$, which represents whether the contestants wa",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc290_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There were $N$ contestants in the qualification round of a programming contest. All contestants got distinct ranks. \nYou are given a length-$N$ string $S$, which represents whether the contestants wa...",
"is_translate": false,
"language": "English"
}
]
}