@[andy605](/user/756608) 已AC
```
#include <bits/stdc++.h>
using namespace std;
string str;
int b;
bool first=false;
int main(){
cin>>b>>str;
int k=str.size();
for(int i=0;i<k;i++){
if(first&&str[i]!='0') cout<<"+";
if(str[i]!='0'){
cout<<str[i]<<"*"<<b<<"^"<<k-i-1;
first=true;
}
}
cout<<"\n";
return 0;
}
```
by xiaolongwuchen @ 2024-04-27 11:02:56
@[andy605](/user/756608)
注意是:
cout<<str[i]<<"*"<<b<<"^"<<k-i-1;
by xiaolongwuchen @ 2024-04-27 11:03:56
@[andy605](/user/756608) 你是这样写的:
cout<<"1*"<<b<<"^"<<k-i-1;
这样是默认输入的字符串是二进制的
by xiaolongwuchen @ 2024-04-27 11:06:04
@[xiaolongwuchen](/user/643573) 谢大佬!
by andy605 @ 2024-04-29 18:38:13
@[xiaolongwuchen](/user/643573) 已关,谢谢!
by andy605 @ 2024-04-29 18:38:42
已互关
by xiaolongwuchen @ 2024-04-29 20:15:28