Sum of Numbers

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Given nn digits from '1' to '9', you can add kk '+' to turn it into an expression. Find the minimum value of the expression.

입력

There are multiple test cases.

The first line of the input contains one integer TT (1T21041\le T\le 2\cdot 10^4) --- the number of test cases.

For each test case:

The first line contains two integers nn (2n21052\le n\le 2\cdot 10^5) and kk (1k61\le k\le 6, k\<nk\<n) --- the number of digits and the number of '+'.

The second line contains a string of length nn, which consists of digits from '1' to '9'.

The sum of nn over all test cases does not exceed 21052\cdot 10^5.

출력

For each test case, output the answer in one line.