T3RRYT3RR0R

golfing cube

Apr 30th, 2021 (edited)
1,283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.32 KB | None | 0 0
  1. :# https://codegolf.stackexchange.com/a/224741/92319
  2. Cls&@Set $=@Set
  3. %$%/Ah=%1*2,z=0
  4. %$%F=@For /L %%a in (1 1 &%$%P=@^<nul set/p&%$%C= @If ,%%y LEQ %1
  5. %f:a=y%!h!)Do @(%$%/Aw=%1-z
  6. %F%!w!)Do %P%=C
  7. %F%!z!)Do%C%(%P%=//)Else %P%=\\
  8. %F%%1)Do%C%(%P%=^^L)Else %P%^"=C""
  9. %C:EQ=SS%(%$%/A z+=1)Else%C:,=not %%$%/Az-=1
  10. Echo()
Add Comment
Please, Sign In to add comment