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 Answer

Commonmark migration
Source Link

#MathGolf , (削除) 6 (削除ここまで) 5 bytes

MathGolf , (削除) 6 (削除ここまで) 5 bytes

9{îÄí

-1 byte thanks to @maxb.

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
 Ä # Do an inner loop that many times, using a single command:
 í # Push the total number iterations of the outer loop
 # (after the loops, the entire stack is joined together and output implicitly)

#MathGolf , (削除) 6 (削除ここまで) 5 bytes

9{îÄí

-1 byte thanks to @maxb.

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
 Ä # Do an inner loop that many times, using a single command:
 í # Push the total number iterations of the outer loop
 # (after the loops, the entire stack is joined together and output implicitly)

MathGolf , (削除) 6 (削除ここまで) 5 bytes

9{îÄí

-1 byte thanks to @maxb.

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
 Ä # Do an inner loop that many times, using a single command:
 í # Push the total number iterations of the outer loop
 # (after the loops, the entire stack is joined together and output implicitly)
added 30 characters in body
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#MathGolf, 6(削除) 6 (削除ここまで) 5 bytes

9{î░î*îÄí

Try it online. -1 byte thanks to @maxb.

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
  Ä # Convert it to a string
Do an inner loop îthat many times, #using a Pushsingle thecommand:
 1-based loop index again
í # *Push the #total number Anditerations repeatof the string that manyouter timesloop
 # (after the looploops, the entire stack is joined together and output implicitly)

#MathGolf, 6 bytes

9{î░î*

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
  # Convert it to a string
 î # Push the 1-based loop index again
 * # And repeat the string that many times
 # (after the loop, the entire stack is joined together and output implicitly)

#MathGolf, (削除) 6 (削除ここまで) 5 bytes

9{îÄí

-1 byte thanks to @maxb.

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
 Ä # Do an inner loop that many times, using a single command:
 í # Push the total number iterations of the outer loop
 # (after the loops, the entire stack is joined together and output implicitly)
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#MathGolf, 6 bytes

9{î░î*

Try it online.

Explanation:

9{ # Loop 9 times:
 î # Push the 1-based loop index
 ░ # Convert it to a string
 î # Push the 1-based loop index again
 * # And repeat the string that many times
 # (after the loop, the entire stack is joined together and output implicitly)

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