func_code_string: #include <bits/stdc++.h>   using namespace std;   char s[1000005];   int main() {     int k, a[10], i, sum, num, maxr;     while (~scanf( %d%s , &k, s)) {       memset(a, 0, sizeof(a));       num = sum = 0;       maxr = -1;       for (i = 0; s[i]; i++) {         int t = s[i] -  0 ;         maxr = max(maxr, t);         a[t]++;         sum += t;       }       if (sum >= k)         puts( 0 );       else {         int flag = 0;         for (i = 0; i <= maxr; i++) {           while (a[i]) {             a[i]--;             sum -= i;             sum += 9;             num++;             if (sum >= k) {               flag = 1;               break;             }           }           if (flag) {             printf( %d n , num);             break;           }         }       }     }     return 0;   }   