题目:
题解:
int getSum(int a, int b){
int c;
while(b)
{
c=(unsigned int)(a&b)<<1;
a^=b;
b=c;
}
return a;
}
题目:
题解:
int getSum(int a, int b){
int c;
while(b)
{
c=(unsigned int)(a&b)<<1;
a^=b;
b=c;
}
return a;
}