

CodePudding user response:

using namespace std;
Int main ()
{
Int j, A, B;
Int ans [32].
Int c1=0, num;
Int temp=0;
While (the scanf (" % d ", & amp; M), m)
{
The scanf (" % d % d ", & amp; A, & amp; B);
Ans [32]={0};
num=0;
Do
{
Temp=A % m + B % m + c1;
Ans [num++]=temp % m;
C1=temp/m;
A/m=;
B/m=;
} while ((A!=0 & amp; & B!=0) | | c1!=0);
For (int I=num 1; I>=0; I -)
{
Printf (" % d ", ans [I]);
}
printf("\n");
}
return 0;
}
CodePudding user response:
You did not consider beyond intthe condition of the
CodePudding user response:
2147483647 + 21474836472147483647 is not 2 ^ 31-1
CodePudding user response:
What is the title?CodePudding user response:
The