各位dalao们康康我代码正不正常
#include<bits/stdc++.h>
using namespace std;
long long n,p[1001];
char a[10000];
int main(){
cin>>n>>a;
int len=strlen(a),cnt=0;
for(int i=0;i<len;i++){
if(a[i]!='0') p[++cnt]=len-1-i;
}
for(int i=1;i<cnt;i++){
cout<<a[p[cnt-i+1]]-'0'<<"*"<<n<<"^"<<p[i]<<"+";
}
cout<<a[p[cnt]]-'0'<<"*"<<n<<"^"<<p[cnt];
}