You are viewing a single comment's thread. Return to all comments →
def cipher(k, s):
accum=0 li=[] for i in range(len(s)-k+1): li.append(str(accum^int(s[i]))) accum^=int(li[-1]) if i>=k-1: accum^=int(li[i-k+1]) return "".join(li)
Seems like cookies are disabled on this browser, please enable them to open this website
Cipher
You are viewing a single comment's thread. Return to all comments →
def cipher(k, s):