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 42 characters in body
Source Link
Graham
  • 7.8k
  • 1
  • 15
  • 13

APL+WIN, 35(削除) 35 (削除ここまで) 33 bytes

Two bytes saved thanks to Tbw

Prompts for string of digits:

↑( ̄1+⍴s)+((s←,⎕)⍷n)/⍳⍴n←(⍕⍳1E3)~' '⍳⍴n←⊃,/⍕ ̈⍳1E3

Try it online! Thanks to Dyalog Classic Try it online! Thanks to Dyalog Classic

APL+WIN, 35 bytes

Prompts for string of digits:

↑( ̄1+⍴s)+((s←,⎕)⍷n)/⍳⍴n←(⍕⍳1E3)~' '

Try it online! Thanks to Dyalog Classic

APL+WIN, (削除) 35 (削除ここまで) 33 bytes

Two bytes saved thanks to Tbw

Prompts for string of digits:

↑( ̄1+⍴s)+((s←,⎕)⍷n)/⍳⍴n←⊃,/⍕ ̈⍳1E3

Try it online! Thanks to Dyalog Classic

Source Link
Graham
  • 7.8k
  • 1
  • 15
  • 13

APL+WIN, 35 bytes

Prompts for string of digits:

↑( ̄1+⍴s)+((s←,⎕)⍷n)/⍳⍴n←(⍕⍳1E3)~' '

Try it online! Thanks to Dyalog Classic

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