A=B
Square
vainman 10 Jan, 2023 @ 5:19am
11/13! It's a great level and should be included in game
12-line solution

# construct a string "aba aba ..." which contains N "aba"s
(once) = (end) dec aba
0 dec = dec 1
1 dec = 0
(start) 0 =
0 a = 0 dec aba a
1 a = 1 dec aba a

# do the bubble sorting, there're 1+3+5+...+(2N-1)=N^2 swaps
triggerinc = (end)inc
0 inc = 1
1 inc = inc 0
inc = 1
ba = ab triggerinc
aab=


Update:
11-line solution

# construct a string "aba aba ..." which contains N "aba"s
(once)=(start)aa
aba1=1abaaba
aba0=1aba
aa 1=aa aba

# do the bubble sorting, there're 1+3+5+...+(2N-1)=N^2 swaps
(once)=(end)b
0+=1
1+=+0
b+=b1
!=(end)+
ba=ab!
aab=
Last edited by vainman; 16 Dec, 2024 @ 6:33pm
< >
Showing 1-1 of 1 comments
vainman 10 Jan, 2023 @ 6:58am 
With this trick, 5-5 A*B can be solved in 14 12/28!
https://gtm.steamproxy.vip/app/1720850/discussions/0/3767857092606817002/
Last edited by vainman; 16 Dec, 2024 @ 6:38pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50