求帮忙看看吧
要求还原 10k +x
#include<bits/stdc++.h>
#define LL long long
#define LF double
using namespace std;
const int N=1000;
LL k,x,f[N];
int main(){
scanf("%lld%lld",&k,&x);
f[k+1]=1;
if(x!=0) for(int i=1;x!=0;i++,x/=10) f[i]+=x%10;
for(int i=k+1;i>=1;i--) printf("%lld",f[i]);
return 0;
}