发错了
是这个
```
#include<bits/stdc++.h>
using namespace std;
int a[1000],b[1000],c[1000],jz;
char b1[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
void read(int s[])
{
string aa;
cin >> aa;
s[0]=aa.size();
for(int i=s[0]-1,j=1;i>=0;--i,++j)
{
int lll;
if(aa[i]>='A' && aa[i]<='F')
lll=aa[i]-'A'+10;
else
lll=aa[i]-'0';
s[j]=lll;
}
while(s[s[0]]==0) --s[0];
}
void print(int a[])
{
for(int i=a[0];i>=1;--i)
cout << b1[a[i]];
cout << endl;
}
void add(int a[],int b[],int c[])
{
c[0]=max(a[0],b[0])+1;
for(int i=1,x=0;i<=c[0];i++)
{
c[i]=a[i]+b[i]+x;
x=c[i]/jz;
c[i]%=jz;
}
if(c[c[0]]==0) --c[0];
}
int main()
{
cin >> jz;
read(a);
read(b);
add(a,b,c);
print(c);
return 0;
}
```
by 蒟蒻lxy @ 2018-03-25 22:01:13
是36进制
by _自动AC机_ @ 2018-03-26 10:31:34
谢谢,以AC
by 蒟蒻lxy @ 2018-03-27 18:46:47
"yi"打错了@[刘星宇0508](/space/show?uid=34500)
by lion0514 @ 2018-08-22 14:38:21
。。。
by 蒟蒻lxy @ 2018-08-22 19:39:43