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 167 characters in body
Source Link
lyxal
  • 35.6k
  • 2
  • 69
  • 148

Vyxal, 3 bytes

(ḭ%

Try it Online!

Try it Onlinea test suite!

The header and footer are for formatting purposes. Otherwise takes arguments in reversed order.

Explained

(ḭ%
( # parallel apply the next two commands and collect into a list:
 ḭ% # integer divide and modulo

Vyxal, 3 bytes

(ḭ%

Try it Online!

The header and footer are for formatting purposes.

Explained

(ḭ%
( # parallel apply the next two commands and collect into a list:
 ḭ% # integer divide and modulo

Vyxal, 3 bytes

(ḭ%

Try it Online!

Try a test suite!

The header and footer are for formatting purposes. Otherwise takes arguments in reversed order.

Explained

(ḭ%
( # parallel apply the next two commands and collect into a list:
 ḭ% # integer divide and modulo
Source Link
lyxal
  • 35.6k
  • 2
  • 69
  • 148

Vyxal, 3 bytes

(ḭ%

Try it Online!

The header and footer are for formatting purposes.

Explained

(ḭ%
( # parallel apply the next two commands and collect into a list:
 ḭ% # integer divide and modulo

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