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)~' '
APL+WIN, (削除) 35 (削除ここまで) 33 bytes
Two bytes saved thanks to Tbw
Prompts for string of digits:
↑( ̄1+⍴s)+((s←,⎕)⍷n)/⍳⍴n←⊃,/⍕ ̈⍳1E3
APL+WIN, 35 bytes
Prompts for string of digits:
↑( ̄1+⍴s)+((s←,⎕)⍷n)/⍳⍴n←(⍕⍳1E3)~' '