Get Mystery Box with random crypto!

n = int(input()) a = list(map(int,input().split())) c = 0 for | CODING SOLUTION - Placement Jobs & Materials

n = int(input())
a = list(map(int,input().split()))
c = 0
for i in range(n-1):
for j in range(i+1:n):
s1 = sum(list(map(int,bin(i)[2:].split())))
s2 = sum(list(map(int,bin(j)[2:].split())))
if s1 == s2:
c += 1
print(c)

Python
Bob and Numbers Code
Telegram - t.me/codingsolution_IT