Dasha Code Championship - Novosibirsk Finals Round (only for onsite-finalists)
B
Ania and Minimizing
Codeforces
未评级
原题
← AC →
翻译中…

Ania has a large integer $S$. Its decimal representation has length $n$ and doesn't contain any leading zeroes. Ania is allowed to change at most $k$ digits of $S$. She wants to do it in such a way that $S$ still won't contain any leading zeroes and it'll be minimal possible. What integer will Ania finish with?

翻译中…

Input

翻译中…

The first line contains two integers $n$ and $k$ ($1 \leq n \leq 200\,000$, $0 \leq k \leq n$) — the number of digits in the decimal representation of $S$ and the maximum allowed number of changed digits.

翻译中…

The second line contains the integer $S$. It's guaranteed that $S$ has exactly $n$ digits and doesn't contain any leading zeroes.

翻译中…

Output

翻译中…

Output the minimal possible value of $S$ which Ania can end with. Note that the resulting integer should also have $n$ digits.

翻译中…

Note

翻译中…

A number has leading zeroes if it consists of at least two digits and its first digit is $0$. For example, numbers $00$, $00069$ and $0101$ have leading zeroes, while $0$, $3000$ and $1010$ don't have leading zeroes.

翻译中…

样例

Input #1
5 3
51528
Output #1
10028
InputCopy OutputCopy
Input #2
3 2
102
Output #2
100
InputCopy OutputCopy
Input #3
1 1
1
Output #3
0
InputCopy OutputCopy
题目信息
题号
1231B
时间限制
1 s
内存限制
256 MB

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。