大数减法_ans[i]=ans[i].substr(0,ans[i].length()-1);-CSDN博客

网站介绍:文章浏览阅读317次。#includeusing namespace std;string Minus(string a,string b){string ans="";string tmp="";char cc;for(int i=a.length();i{tmp+="0";}a=tmp+a;int c=0;for(int i=b.length()-1;i>=0;i_ans[i]=ans[i].substr(0,ans[i].length()-1);