include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
const int N=305;
int a[N],b[N],c[N],tmp[N];
void init(int x[]){
char s[N];
gets(s);
x[0]=strlen(s);
for(int i=1;i<=x[0];i) x[i]=s[x[0]-i]-‘0’;
}
void print(int x[]){
for(int i=x[0];i>=1;i–)
cout<[HTML_REMOVED]b[0]) return 1;
if(a[0][HTML_REMOVED]=1;i–){
if(a[i]>b[i]) return 1;
if(a[i][HTML_REMOVED]1) a[0]–;
}
int main(){
int i;
init(a);
init(b);
c[0]=a[0]-b[0]+1;
for(i=c[0];i>=1;i–){
memset(tmp,0,sizeof(tmp));
numcpy(b,tmp,i);
while(compare(a,tmp)>0){
c[i];
sub(a,tmp);
}
}
while(c[c[0]]==0&&c[0]>0) c[0]–;
print(c);
cout<<endl;
print(a);
return 0;
}
代码要放在三点之间哦