fork(1) download
  1. from math import*;P=lambda d:''.join([d[int(bin(i)[2:].zfill(int(log2(len(d))))[::-1],2)]for i in range(len(d))])
  2. exec("print(P(input()));"*4)
Success #stdin #stdout 0.02s 9936KB
stdin
z
codegolf
Programming Puzzles N' Code-Golf
super spectacular dazzling dream
stdout
z
cgdlooef
PliorNPGosgem zlrenda'uog  -mCzf
srenrzcrpdt sllau cg zueeaadpiam