You are viewing a single comment's thread. Return to all comments →
I just added a bitmask for the largest 32 bits possible number and apply XOR to get the new number. It's not very elegant but it worked.
string current = Console.ReadLine(); Console.WriteLine(4294967295^long.Parse(current));
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →
I just added a bitmask for the largest 32 bits possible number and apply XOR to get the new number. It's not very elegant but it worked.