Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

4 of 4
added 40 characters in body
Weijun Zhou
  • 3.7k
  • 15
  • 42

Stax, 23+5+17+29=74

╥╟.└ç╘SJ∞CF╔v=▌╝Σ@∞ìé«g

Run and debug it

(削除) Shortest answer so far (削除ここまで) Not surprisingly beaten by Jelly. The string template provided in Stax is really neat and provides printf-like functions. The programs generated by the compiler are almost always as short as the best one can achieve by manually codegolfing, without using packing.

The compiler itself is 23 bytes long.

The ASCII equivalent is:

{H34|S_h"_`c%z`n?+"m"mz`cc_?

Provided input [], generates this one (5 bytes)

mzc_?

Run and debug it

Provided input [[1,"Golf"]], generates this one (17 bytes)

mz_1%z"Golf"?+c_?

Run and debug it

Provided input [[3,"Fizz"],[5,"Buzz"]], generates this one (29 bytes)

mz_3%z"Fizz"?+_5%z"Buzz"?+c_?

Run and debug it

Weijun Zhou
  • 3.7k
  • 15
  • 42

AltStyle によって変換されたページ (->オリジナル) /