<pre> from sys import stdin,stdout T = int(stdin.readline().strip()) for itr_t in range(T): a = (stdin.readline().strip(),2) b = (stdin.readline().strip(),2) print(a) print(b) count = 0 while b != 0: count += 1 u = a^b v = a&b a = u b = v << 1 print(count)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)