Created
October 2, 2020 11:30
-
-
Save RDxR10/38c63680727a2097438910559411bb39 to your computer and use it in GitHub Desktop.
Solution to Misc/Amidst Bits and Bases from darkCTF 2020
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decoded_list=[] | |
for (i,j) in zip(bases,states): | |
#print(i,j) | |
if i=='Z': | |
if j=='|0>': | |
decoded_list.append('0') | |
if j=='|1>': | |
decoded_list.append('1') | |
if i=='X': | |
if j=='|+>': | |
decoded_list.append('0') | |
if j=='|->': | |
decoded_list.append('1') | |
print(decoded_list) | |
d_l = ''.join([str(n) for n in decoded_list]) | |
print(d_l) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment