文章
4
粉丝
0
获赞
0
访问
2.1k
#include <iostream>
#include <cstring>
using namespace std;
const int N=100010;
int A[N],B[N],C[N];
int Add(int a[],int b[],int c[],int len){
int carry = 0;
for(int i=0;i<=len;i++){
int s = a[i] + b[i] + carry;
int mod = s % 10;
carry = s / 10;
c[i] = mod;
}
return c[len] == 0? len : len+1;
}
void clear(){
memset((void*)A,0,N*4);
memset((void *)B,0,N*4);
memset((void *)C,0,N*4);
}
int main(){
string a,b;
while(cin >> a >> b ){
clear();
int count1 = 0;
for(int i=a.size(...
登录后发布评论
暂无评论,来抢沙发