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

deleted 49 characters in body
Source Link
daniero
  • 18.8k
  • 5
  • 52
  • 79

Ruby, (削除) 54 (削除ここまで) 45(削除) 45 (削除ここまで) 42 bytes

New strategy:

->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*([v]*y*$/+$(v+$/)*y)}

It's an anonymous function that takes the different part of the input as separate parameters and(削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*([v]*y*$/+$(v+$/)*y)}
puts f[6, 2, 'Ø', 'V', '<']'>']

prints

Ø<<<<ØØ>>>>Ø
V
V
Ø<<<<ØØ>>>>Ø
V
V
Ø<<<<ØØ>>>>Ø

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*([v]*y*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and(削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*([v]*y*$/+$/)}
puts f[6, 2, 'Ø', 'V', '<']

prints

Ø<<<<Ø
V
V
Ø<<<<Ø
V
V
Ø<<<<Ø

Ruby, (削除) 54 (削除ここまで) (削除) 45 (削除ここまで) 42 bytes

->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*((v+$/)*y)}

It's an anonymous function that takes the different part of the input as separate parameters and returns the result as a complete string.

For example,

f=->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*((v+$/)*y)}
puts f[6, 2, 'Ø', 'V', '>']

prints

Ø>>>>Ø
V
V
Ø>>>>Ø
V
V
Ø>>>>Ø
deleted 2 characters in body
Source Link
daniero
  • 18.8k
  • 5
  • 52
  • 79

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

f=->y>x,xy,c,v,h{[c+h*~-~-y+c+$x+c+$/]*3*([v]*x*$[v]*y*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and (削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->y>x,xy,c,v,h{[c+h*~-~-y+c+$x+c+$/]*3*([v]*x*$[v]*y*$/+$/)}
puts f[6, 2, 'Ø', 'V', '<']

prints

Ø<<<<Ø
V
V
Ø<<<<Ø
V
V
Ø<<<<Ø

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and (削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}
puts f[6, 2, 'Ø', 'V', '<']

prints

Ø<<<<Ø
V
V
Ø<<<<Ø
V
V
Ø<<<<Ø

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*([v]*y*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and (削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->x,y,c,v,h{[c+h*~-~-x+c+$/]*3*([v]*y*$/+$/)}
puts f[6, 2, 'Ø', 'V', '<']

prints

Ø<<<<Ø
V
V
Ø<<<<Ø
V
V
Ø<<<<Ø
added 3 characters in body
Source Link
daniero
  • 18.8k
  • 5
  • 52
  • 79

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and (削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}
puts f[7f[6, 2, '+''Ø', '|''V', '-']'<']

prints

+-----+Ø<<<<Ø
|V
|V
+-----+Ø<<<<Ø
|V
|V
+-----+Ø<<<<Ø

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and (削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}
puts f[7, 2, '+', '|', '-']

prints

+-----+
|
|
+-----+
|
|
+-----+

Ruby, (削除) 54 (削除ここまで) 45 bytes

New strategy:

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}

It's an anonymous function that takes the different part of the input as separate parameters and (削除) print the result to stdout (削除ここまで) returns the result as a complete string.

For example,

f=->y,x,c,v,h{[c+h*~-~-y+c+$/]*3*([v]*x*$/+$/)}
puts f[6, 2, 'Ø', 'V', '<']

prints

Ø<<<<Ø
V
V
Ø<<<<Ø
V
V
Ø<<<<Ø
added 63 characters in body
Source Link
daniero
  • 18.8k
  • 5
  • 52
  • 79
Loading
added 4 characters in body
Source Link
daniero
  • 18.8k
  • 5
  • 52
  • 79
Loading
Source Link
daniero
  • 18.8k
  • 5
  • 52
  • 79
Loading

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