Precreation contest files
This commit is contained in:
11
misc/python.py
Normal file
11
misc/python.py
Normal file
@@ -0,0 +1,11 @@
|
||||
x = int(input())
|
||||
y = int(input())
|
||||
counter = 0
|
||||
|
||||
while (x or y):
|
||||
counter += (x % 2)^(y % 2)
|
||||
x >>= 1
|
||||
y >>= 1
|
||||
|
||||
print(counter)
|
||||
|
||||
Reference in New Issue
Block a user