include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
bool cmp(string &a,string &b){
if(a.size()!=b.size()) return a.size()>=b.size();
else return a>=b;
}
vector[HTML_REMOVED] sub(vector[HTML_REMOVED] &a,vector[HTML_REMOVED] &b){
int t=0;
vector[HTML_REMOVED] c;
int lenth=a.size();
for(int i=0;i[HTML_REMOVED]>A>>B;
vector[HTML_REMOVED] a,b,c;
for(int i=A.size()-1;i>=0;i–) a.push_back(A[i]-‘0’);
for(int i=B.size()-1;i>=0;i–) b.push_back(B[i]-‘0’);
if(cmp(A,B)) c=sub(a,b);
else{
cout<<”-“;
c=sub(b,a);
}
while(c.back()==0&&c.size()>1) c.pop_back();
for(auto i=c.rbegin();i!=c.rend();i++)
cout<<*i;
return 0;
}