#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; while(b!=0){ //当进位位0时推出 int c = (a&b)<<1; //c=进位 a ^= b; //a = 非进位和 b = c; //b = 进位 } cout<<a; }