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 , (削除) 9 (削除ここまで)(削除) 7 (削除ここまで) 5 bytes

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

ā17*è

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list
-2 bytes thanks to @Mr.Xcoder

Try it online.

Explanation:

ā # 1-indexed length range [1 ... length_of_input_list (54)]
 17* # `k`: Multiply each index by 17
 è # And then replace each item with the 0-indexed `k`'th card of the input-list
 # (with automatic wrap-around)

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

ā17*è

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list
-2 bytes thanks to @Mr.Xcoder

Try it online.

Explanation:

ā # 1-indexed length range [1 ... length_of_input_list (54)]
 17* # `k`: Multiply each index by 17
 è # And then replace each item with the 0-indexed `k`'th card of the input-list
 # (with automatic wrap-around)

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

ā17*è

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list
-2 bytes thanks to @Mr.Xcoder

Try it online.

Explanation:

ā # 1-indexed length range [1 ... length_of_input_list (54)]
 17* # `k`: Multiply each index by 17
 è # And then replace each item with the 0-indexed `k`'th card of the input-list
 # (with automatic wrap-around)
added 95 characters in body
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

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

vN17*è,ā17*è

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list
-2 bytes thanks to @Mr.Xcoder

Try it online. Try it online.

Explanation:

v ā # For1-eachindexed withlength indexrange over[1 the... length_of_input_list (implicit54) input-list]
 N17* 17* # `k`: Multiply the 0-indexedeach index by 17
 è, # Print-And then replace each item with-newline the 0-indexed `k`'th card of the input-list # (with automatic wrap-around)

#05AB1E, (削除) 9 (削除ここまで) 7 bytes

vN17*è,

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list

Try it online.

Explanation:

v  # For-each with index over the (implicit) input-list
 N17* # `k`: Multiply the 0-indexed index by 17
 è, # Print-with-newline the `k`'th card of the input-list (automatic wrap-around)

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

ā17*è

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list
-2 bytes thanks to @Mr.Xcoder

Try it online.

Explanation:

ā # 1-indexed length range [1 ... length_of_input_list (54)]
 17* # `k`: Multiply each index by 17
 è # And then replace each item with the 0-indexed `k`'th card of the input-list # (with automatic wrap-around)
deleted 21 characters in body
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394

#05AB1E, 9 (削除) 9 (削除ここまで) 7 bytes

vIN17*è})vN17*è,

Port of @GB's Ruby answer, so make sure to upvote him!

Try it online. -2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list

Try it online.

Explanation:

v # For-each (with index) over the (implicit) input-list
 N17* # `k`: Multiply the 0-indexed index by 17
 I è, # TakePrint-with-newline the `k`'th indexcard of the input-arraylist (automatic wrap-around)
 } # Stop the for-each
 ) # Wrap all values on the stack to a single array (and output implicitly)

#05AB1E, 9 bytes

vIN17*è})

Port of @GB's Ruby answer, so make sure to upvote him!

Try it online.

Explanation:

v # For-each (with index) over the (implicit) input
 N17* # `k`: Multiply the 0-indexed index by 17
 I è # Take the `k`'th index of the input-array (automatic wrap-around)
 } # Stop the for-each
 ) # Wrap all values on the stack to a single array (and output implicitly)

#05AB1E, (削除) 9 (削除ここまで) 7 bytes

vN17*è,

Port of @GB's Ruby answer, so make sure to upvote him!

-2 bytes by printing each card with a new-line delimiter instead of wrapping it to a result-list

Try it online.

Explanation:

v # For-each with index over the (implicit) input-list
 N17* # `k`: Multiply the 0-indexed index by 17
 è, # Print-with-newline the `k`'th card of the input-list (automatic wrap-around)
Source Link
Kevin Cruijssen
  • 136.2k
  • 14
  • 154
  • 394
Loading

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