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

#05AB1E , (削除) 11 (削除ここまで) 5 bytes

05AB1E , (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach, so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(\text{input length})\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-|n|-1\$ amount of spaces, appended with \$|n|\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)

#05AB1E , (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach, so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(\text{input length})\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-|n|-1\$ amount of spaces, appended with \$|n|\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)

05AB1E , (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach, so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(\text{input length})\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-|n|-1\$ amount of spaces, appended with \$|n|\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)
added 2 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221

#05AB1E, (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach, so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(inputlength)\$\100ドル-(\text{input length})\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-abs(n)-1\$\2147483648ドル-|n|-1\$ amount of spaces, appended with \$abs(n)\$\$|n|\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)

#05AB1E, (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach, so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(inputlength)\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-abs(n)-1\$ amount of spaces, appended with \$abs(n)\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)

#05AB1E, (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach, so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(\text{input length})\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-|n|-1\$ amount of spaces, appended with \$|n|\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)
added 799 characters in body
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#05AB1E, 11 (削除) 11 (削除ここまで) 5 bytes

×ばつAId諞IjтjÇ·ç

-6 bytes porting @Stephen's approach , so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(inputlength)\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-abs(n)-1\$ amount of spaces, appended with \$abs(n)\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)

#05AB1E, 11 bytes

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-abs(n)-1\$ amount of spaces, appended with \$abs(n)\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)

#05AB1E, (削除) 11 (削除ここまで) 5 bytes

тjÇ·ç

-6 bytes porting @Stephen's approach , so make sure to upvote him!

Outputs a list of up to 100 characters, with \100ドル-(inputlength)\$ amount of @ (double the space codepoint), and all -0123456789 mapped to Z`bdfhjlnpr (double the ASCII codepoints).

Try it online.

Explanation:

 j # Prepend spaces in front of the (implicit) input-integer to make it of length:
т # 100
 Ç # Convert each character to its unicode value
 · # Double each
 ç # And convert it back to a character
 # (after which the resulting list is output implicitly)

Original 11 bytes answer:

×ばつAId諞Ij

Try it online (limited to 1000 instead of 2147483648).

Explanation:

The output length is always 2,147,483,648 characters long. It will output \2147483648ドル-abs(n)-1\$ amount of spaces, appended with \$abs(n)\$ amount of newlines, appended with either an 'a' if \$n\lt0\$ or 'b' if \$n\geq0\$.

Ä # Get the absolute value of the (implicit) input-integer
 ×ばつ # And have a string with that many newline characters
 A # Push the lowercase alphabet
 Id # Check if the input is non-negative (>=0) (1 if truthy; 0 if falsey)
 è # Use that to index into the alphabet (so "a" for <0 and "b" for >=0)
 « # Append that to the newline-string we created earlier
 j # And prepend spaces to make the string of a length:
 žI # 2147483648 (this has been replaced with `4`/1000 in the TIO)
 # (after which the result is output implicitly)
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394
Loading

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