First Post 1/24

Hello,

This is my first post on this platform, and I’d like to leave a puzzle. Code below!

Cheers,
Matt

Code:

from itertools import chain, cycle
from functools import reduce
import base64

encoded = ‘SSBhbSBuZXcgaGVyZSwgYW5kIGxvb2tpbmcgZm9yd2FyZCB0byBwb3N0aW5n’

decoded = base64.b64decode(encoded).decode(‘utf-8’)

indices = chain.from_iterable(
[reduce(lambda x, y: x + y, [[i] for i in range(len(decoded))][::j]) for j in range(1, 2)]
)
unscrambled = ”.join(decoded[i] for i in indices if i < len(decoded))

vars()[decoded[:3]] = unscrambled

(lambda x: print(x))(reduce(lambda a, b: a + b, cycle([decoded])))

原文链接:First Post 1/24

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
If you get tired, learn to rest, not to quit.
如果你累了,学会休息,而不是放弃
评论 抢沙发

请登录后发表评论

    暂无评论内容