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

#APL+WIN, 32 bytes

APL+WIN, 32 bytes

m,[.1]n÷m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5

Explanation:

(n←⎕) Prompts for screen input
m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5 Calculates the factors dropping the first
m,[.1]n÷ Identifies the pairs and concatenates into a list.

#APL+WIN, 32 bytes

m,[.1]n÷m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5

Explanation:

(n←⎕) Prompts for screen input
m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5 Calculates the factors dropping the first
m,[.1]n÷ Identifies the pairs and concatenates into a list.

APL+WIN, 32 bytes

m,[.1]n÷m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5

Explanation:

(n←⎕) Prompts for screen input
m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5 Calculates the factors dropping the first
m,[.1]n÷ Identifies the pairs and concatenates into a list.
Source Link
Graham
  • 7.8k
  • 1
  • 15
  • 13

#APL+WIN, 32 bytes

m,[.1]n÷m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5

Explanation:

(n←⎕) Prompts for screen input
m←(0=m|n)/m←1↓⍳⌊(n←⎕)*.5 Calculates the factors dropping the first
m,[.1]n÷ Identifies the pairs and concatenates into a list.

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