Salvens

Untitled

Mar 10th, 2024
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. s = input()
  2. x = int(s, 16)
  3. cnt = [0, 0, 0, 0]
  4. for i in range(0, 30):
  5.     s = input()
  6.     y = int(s, 16)
  7.     z = x ^ y
  8.     cnt[z % 4] += 1
  9. for i in cnt:
  10.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment