请自行右转百度
by Sai0511 @ 2019-01-21 12:07:03
加减自己去网上搜
by Interesting_L @ 2019-01-21 12:08:00
这是乘
应该是我在书上抄的
```cpp
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
char a1[101],b1[101];
int a[101],b[101],c[10001],lena,lenb,lenc,i,j,x;
memset(a,0,sizeof(a));
memset(b,0,sizeof(b));
memset(c,0,sizeof(c));
scanf("%s",a1);
scanf("%s",b1);
lena=strlen(a1);
lenb=strlen(b1);
for (int i=0;i<=lena-1;i++)
a[lena-i]=a1[i]-48;
for (int i=0;i<=lenb-1;i++)
b[lenb-i]=b1[i]-48;
for (i=1;i<=lena;i++)
{
x=0;
for (j=1;j<=lenb;j++)
{
c[i+j-1]=a[i]*b[j]+x+c[i+j-1];
x=c[i+j-1]/10;
c[i+j-1]%=10;
}
c[i+lenb]=x;
}
lenc=lena+lenb;
while (c[lenc]==0 && lenc>1)
lenc--;
for (i=lenc;i>=1;i--)
cout<<c[i];
return 0;
}
```
by Interesting_L @ 2019-01-21 12:08:54
@[sft521](/space/show?uid=168102) ~~__int128~~~~**逃**~~
by 爱撒谎的先生 @ 2019-01-21 12:10:07
百度是啥?
by vocaloid @ 2019-01-21 12:39:48
@[Vocaloid](/space/show?uid=52734) 大佬又在装弱了
by Meatherm @ 2019-01-21 12:43:38
@[Vocaloid](/space/show?uid=52734) 上Google查
by _RSY_ @ 2019-01-21 12:53:30
hhhh
by flywatre @ 2019-01-21 13:09:49
@[2017任舍予](/space/show?uid=46197) Google是啥?
by a_Teddy080818 @ 2019-01-21 13:20:04
@[王仕祺](/space/show?uid=80757) 上百度查 (身陷毒瘤无法自拔)
by He_Ren @ 2019-01-21 13:23:15