哪里错了

P1303 A*B Problem

元灵阿五 @ 2019-11-03 12:57:06

include<iostream>

include<cstring>

include<cstdio>

using namespace std; char a1[101],b1[101]; int a[101],b[101],c[10001],lena,lenb,lenc,i,j,x; int main() { 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(i=0;i<=lena-1;i++) a[lena-i]=a1[i]-48; for(i=0;i<=lenb-1;i++) b[lenb-i]=b1[i]-48; for(i=1;i<=lena;i++) { x=0; for(j=1;i<=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]; cout<<endl; return 0; }


by ywr8 @ 2019-11-03 12:59:49

markdown使用错误


by yummy @ 2019-11-03 13:06:08

请不要用Markdown强调头文件的重要性


by 59percent @ 2019-11-03 13:14:44

markdown使用错误

by Belarus @ 2019-11-03 13:28:23

\huge\color{darkblue}\sf{MUE} \tiny\tt{Markdown\,\,Using\,\,Error} \large\color{red}\tt{Unaccepted}

by 元灵阿五 @ 2019-11-09 21:24:02

我是渣渣,各位奆佬,能说详细点吗,markdown是什么?


|