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

added 32 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

(削除) 25 (削除ここまで) 24 bytes (削除) 24 (削除ここまで)22 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length and fixing / for like the 10th time

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

(削除) 25 (削除ここまで) 24 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

(削除) 25 (削除ここまで) (削除) 24 (削除ここまで)22 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length and fixing / for like the 10th time

deleted 2 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

25 bytes (削除) 25 (削除ここまで)24 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

25 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

(削除) 25 (削除ここまで)24 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length

added 298 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

25 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

Canvas, (削除) 29 (削除ここまで) (削除) 28 (削除ここまで) 26 bytes

7÷U+{ <ibg×ばつ/n}⇵K2*∔─↶

Try it here!

Explanation:

7÷U+ ceil(input/7) + input
 { } for n in 1..the above
 <ibgyor@ in the string " <ibgyor", pick the nth character
 ×ばつ repeat n times
 / create a diagonal of that
 n and overlap the top 2 stack items (the 1st time around this does nothing, leaving an item for the next iterations)
 ⇵ reverse the result vertically
 K take off the last line (e.g. " <ibgyor <ib")
 2* repeat that vertically twice
 ∔ and append that back to the diagonals
 ─ palindromize vertically
 ↶ and rotate 90° anti-clockwise. This rotates "<" to "v"

25 bytes after fixing that mold should cycle if the wanted length is bigger than the inputs length

deleted 9 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75
Loading
-1
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75
Loading
added 901 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75
Loading
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75
Loading

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