nb
Size: a a a
nb
Kj
~&
Kj
Kj
Kj
~&
Kj
<Ч
A
~&
🅹
def jopa(s):
x = len(s)
groups = []
for i in range(1, 1 << x):
group = [s[j] for j in range(x) if (i & (1 << j))]
if not sum(group)%3: groups.append(group)
return groups
found = jopa(nums)
print(len(found), found, sep = '\n')
~&
~&
A
~&
🅹
🅹
~&