fork(1) download
  1. t,x=eval(input())
  2. print("\n".join([t[c:c+x].ljust(x)[::1-2*(int(c/x)%2)] for c in range(0,len(t),x)]))
Success #stdin #stdout 0.02s 9936KB
stdin
"Programming Puzzles & Code Golf", 4
stdout
Prog
mmar
ing 
zzuP
les 
oC &
de G
 flo