Vyxal r, (削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:n≤:Sn*,[-1⁄8
1⁄8 # (Implicit input) Push to global array
ɾṘ # (Implicit input) range(1,n+1) reversed
ƛ # Foreach [n]
1⁄4: # Push from global array and duplicate [n,r,r]
n≤ # Push n and check if r >= n [n,r,b]
:Sn*, # Duplicate, coerce to string (0 or 1), multi by n and output.
[ # If ToS is truthy (r >= n) [n,r]
- # Subtract [r-n] (r flag reverses arguments)
1⁄8 # Push to global array.
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array. It works well though, and I don't think it'd be any more golfable if the register worked properly.
Based on the insight that everything can be made of rows of 1s and 0s.
Vyxal r, (削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:n≤:Sn*,[-1⁄8
1⁄8 # (Implicit input) Push to global array
ɾṘ # (Implicit input) range(1,n+1) reversed
ƛ # Foreach [n]
1⁄4: # Push from global array and duplicate [n,r,r]
n≤ # Push n and check if r >= n [n,r,b]
:Sn*, # Duplicate, coerce to string (0 or 1), multi by n and output.
[ # If ToS is truthy (r >= n) [n,r]
- # Subtract [r-n] (r flag reverses arguments)
1⁄8 # Push to global array.
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array. It works well though, and I don't think it'd be any more golfable if the register worked properly.
Vyxal r, (削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:n≤:Sn*,[-1⁄8
1⁄8 # (Implicit input) Push to global array
ɾṘ # (Implicit input) range(1,n+1) reversed
ƛ # Foreach [n]
1⁄4: # Push from global array and duplicate [n,r,r]
n≤ # Push n and check if r >= n [n,r,b]
:Sn*, # Duplicate, coerce to string (0 or 1), multi by n and output.
[ # If ToS is truthy (r >= n) [n,r]
- # Subtract [r-n] (r flag reverses arguments)
1⁄8 # Push to global array.
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array. It works well though, and I don't think it'd be any more golfable if the register worked properly.
Based on the insight that everything can be made of rows of 1s and 0s.
Vyxal r, (削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:n≤:Sn*,[-1⁄8
1⁄8 # (Implicit input) Push to global array
ɾṘ # (Implicit input) range(1,n+1) reversed
ƛ # Foreach [n]
1⁄4: # Push from global array and duplicate [n,r,r]
n≤ # Push n and check if r >= n [n,r,b]
:Sn*, # Duplicate, coerce to string (0 or 1), multi by n and output.
[ # If ToS is truthy (r >= n) [n,r]
- # Subtract [r-n] (r flag reverses arguments)
1⁄8 # Push to global array.
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array. It works well though, and I don't think it'd be any more golfable if the register worked properly.
Vyxal r, (削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:n≤:Sn*,[-1⁄8
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array.
Vyxal r, (削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:n≤:Sn*,[-1⁄8
1⁄8 # (Implicit input) Push to global array
ɾṘ # (Implicit input) range(1,n+1) reversed
ƛ # Foreach [n]
1⁄4: # Push from global array and duplicate [n,r,r]
n≤ # Push n and check if r >= n [n,r,b]
:Sn*, # Duplicate, coerce to string (0 or 1), multi by n and output.
[ # If ToS is truthy (r >= n) [n,r]
- # Subtract [r-n] (r flag reverses arguments)
1⁄8 # Push to global array.
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array. It works well though, and I don't think it'd be any more golfable if the register worked properly.
Vyxal r, 18(削除) 18 (削除ここまで) 16 bytes
1⁄8ɾṘƛ1⁄4:1⁄8≤n≤:Sn*,[1⁄4n[-1⁄8
Due to a bug with redefining the register inside a lambda, I'm forced to use the global array.