Skip to content

Instantly share code, notes, and snippets.

@manpages manpages/bitmask.py
Created Aug 10, 2015

Embed
What would you like to do?
Get your bitmask!
if __name__ == "__main__":
zzz = (s.run("""
select distinct powerScore from scores
"""))[1]
z = 0
for x in zzz:
print(bin(z))
y = int(x[0]) #here goes the poweScore mask for a submission
z = z | y
print(bin(z))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.