def seki(a , b)
c=0;
while(a!=0)
if ((a & 1)==1)
c^=b;
end
b<<=1; a>>=1;
end
return c;
end
Go to list of users who liked
More than 3 years have passed since last update.
def seki(a , b)
c=0;
while(a!=0)
if ((a & 1)==1)
c^=b;
end
b<<=1; a>>=1;
end
return c;
end
Register as a new user and use Qiita more conveniently
Go to list of users who liked