A=B
Not enough ratings
A=B Short Coding Solutions/A=B 攻略ガイド
By カズエイ and 1 collaborators
This guide has been created to share ideas for finding the shortest solutions in A=B. So if you have an idea, please comment on it.

このガイドは、ゲーム「A=B」の問題における最も行数が短い解法を見つけるために作成しました。
何かアイデアや感想などあれば、ぜひコメントしてください。
   
Award
Favorite
Favorited
Unfavorite
Scores
  • Chapter 1: A=B
    1-1 (1/1) 1-2 (3/3) 1-3 (3/3) 1-4 (2/2) 1-5 (3/3) 1-6 (4/4)

  • Chapter 2: Keyword
    2-1 (1/1) 2-2 (4/4) 2-3 (5/5) 2-4 (6/6) 2-5 (8/10) 2-6 (8/13) 2-7 (5/8) 2-8 (7/11) 2-9 (7/9)

  • Chapter 3: Start and End
    3-1 (2/2) 3-2 (2/2) 3-3 (4/4) 3-4 (3/4) 3-5 (6/7) 3-6 (10/11) 3-7 (7/8)

  • Chapter 4: Once Upon A Time
    4-1 (1/1) 4-2 (3/3) 4-3 (4/4) 4-4 (4/5) 4-5 (7/7) 4-6 (5/6) 4-7 (7/7) 4-8 (8/11) 4-9 (4/5) 4-10 (8/8) 4-11 (8/9) 4-12 (6/9) 4-13 (7/10) 4-14 (7/15) 4-15 (8/13) 4-16 (4/9)

  • Chapter 5: Math
    5-1 (3/7) 5-2 (4/4) 5-3 (5/9) 5-4 (6/8) 5-5 (8/28) 5-6 (11/40)

  • Chapter 6: Aftermath
    6-1 (4/4) 6-2 (9/24) 6-3 (6/13)

  • Sum
    Chapter 1 (16/16) Chapter 2 (51/67) Chapter 3 (34/38) Chapter 4 (91/122) Chapter 5 (37/96) Chapter 6 (19/41) Total (248/380)
Chapter 1: A=B
  • 1-1 A to B (1/1)
    1. a=b

  • 1-2 Uppercase (3/3)
    1. a=A
    2. b=B
    3. c=C

  • 1-3 Singleton (3/3)
    1. aa=a
    2. bb=b
    3. cc=c

  • 1-4 Singleton 2 (2/2)
    1. aaa=aa
    2. aa=

  • 1-5 Sort (3/3)
    1. ba=ab
    2. ca=ac
    3. cb=bc

  • 1-6 Compare (4/4)
    1. ab=
    2. ba=
    3. aa=a
    4. bb=b
Chapter 2: Keyword
  • 2-1 Hello World (1/1)
    1. =(return)helloworld

  • 2-2 AAA (4/4)
    1. b=
    2. c=
    3. aaa=(return)true
    4. =(return)false

  • 2-3 Exactly Three (5/5)
    1. b=a
    2. c=a
    3. aaaa=(return)false
    4. aaa=(return)true
    5. =(return)false

  • 2-4 Remainder (6/6)
    1. b=a
    2. c=a
    3. aaaaaa=0
    4. aaa=0
    5. aa=(return)2
    6. a=(return)1

  • 2-5 Odd (8/10)
    1. b=aaaaaaa
    2. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=|a||
    3. c=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    4. aaaaaaa=||a|
    5. |||=
    6. aaa=a
    7. aa=(return)false
    8. =(return)true

  • 2-6 The Only (8/13)
    1. |||||||||||||||||||||||||b=a|||||||||||||||||||||||||
    2. |||||||||||||||||||||||||c=b|||||||||||||||||||||||||
    3. aaa=aa
    4. aa=|
    5. a=||||
    6. ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||=(return)false
    7. ||||||||||||||||||||||||||||||||||||||||||||||||||||||=(return)true
    8. =|||||||||||||||||||||||||

  • 2-7 Ascend (5/8)
    1. aaaaaaaaac=
    2. ca=ac
    3. b=aaaaaaaa
    4. aaaaaacc=(return)true
    5. =(return)false

  • 2-8 Most (7/11)
    1. ba=ab
    2. ca=ac
    3. cb=bc
    4. aaaa=(return)a
    5. bbbb=(return)b
    6. ccc=(return)c
    7. =abc

  • 2-9 Least (7/9)
    1. ba=ab
    2. ca=ac
    3. cb=bc
    4. abc=(return)b
    5. bcc=(return)a
    6. ab=(return)c
    7. =abc
Chapter 3: Start and End
  • 3-1 Remove (2/2)
    1. (start)a=
    2. (end)a=

  • 3-2 Spin (2/2)
    1. (start)b=(end)b
    2. (start)c=(end)c

  • 3-3 A to B 2 (4/4)
    1. (start)a=(end)<
    2. (end)a=(start)>
    3. <=(start)b
    4. >=(end)b

  • 3-4 Swap (3/4)
    1. (start)a=(end)<<<<<<a
    2. b<=(start)b
    3. <=

  • 3-5 Match (6/7)
    1. b=||a|
    2. c=|a||
    3. (start)|=(end)|
    4. (end)a|||=(return)true
    5. (end)|=(return)false
    6. =(return)true

  • 3-6 Most 2 (10/11)
    1. ba=ab
    2. ca=ac
    3. cb=bc
    4. ab=(end)|c
    5. c|c=(end)|
    6. ac=c|c
    7. bc=c|c
    8. a|=aa
    9. b|=bb
    10. |=c

  • 3-7 Palindrome (7/8)
    1. |b||a=
    2. |b|b=
    3. ||b=(return)false
    4. (end)a=(start)|b||
    5. (end)b=(start)|b|
    6. c=baaaaaab
    7. =(return)true
Chapter 4: Once Upon A Time
  • 4-1 Hello 2 (1/1)
    1. (once)=hello

  • 4-2 Remove 2 (3/3)
    1. (once)a=
    2. (once)a=
    3. (once)a=

  • 4-3 Cut (4/4)
    1. (once)=|||
    2. |a=
    3. |b=
    4. |c=

  • 4-4 Remove 3 (4/5)
    1. (once)=(end)cccccccccccccccccccccccc
    2. bcccccccc=ccccccccb
    3. acccccccc=
    4. cccccccc=

  • 4-5 Reverse (7/7)
    1. (once)=<
    2. a<=(start)a
    3. b<=(start)b
    4. c<=(start)c
    5. <a=(end)<a
    6. <b=(end)<b
    7. <c=(end)<c

  • 4-6 Reverse 2 (5/6)
    1. (once)=<<<<<<<
    2. <a=(start)a
    3. <b=(start)b
    4. <c=(start)c
    5. <=

  • 4-7 Cut 2 (7/7)
    1. (once)=||||
    2. ||a=a|
    3. ||b=b|
    4. ||c=c|
    5. |a=
    6. |b=
    7. |c=

  • 4-8 Clone (8/11)
    1. (once)=>>>
    2. <a=(start)a
    3. <b=(start)b
    4. <c=(start)c
    5. >a=(end)a<a
    6. >b=(end)b<b
    7. >c=(end)c<c
    8. (once)=<<<

  • 4-9 A to B 3 (4/5)
    1. (once)=cccccccc
    2. cccccccca=bcccccccc
    3. ccccccccb=acccccccc
    4. cccccccc=

  • 4-10 Half (8/8)
    1. (once)=|
    2. ||a=a|
    3. ||b=b|
    4. ||c=c|
    5. |a=||
    6. |b=||
    7. |c=||
    8. |=

  • 4-11 Clone 2 (8/9)
    1. (once)=||-
    2. ||-a=a||-A
    3. ||-b=b||-B
    4. ||-c=c||-C
    5. A=(end)|-|a
    6. B=(end)|-|b
    7. C=(end)|-|c
    8. |-|=

  • 4-12 To B or not to B (6/9)
    1. (once)b=cccccccb
    2. accccccc=cccccccb
    3. cccccccb=bccccccc
    4. ccccccca=bccccccc
    5. bccccccc=b
    6. a=c

  • 4-13 Center (7/10)
    1. (once)=|>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    2. >a=(end)a
    3. >b=(end)b
    4. >c=(end)c
    5. |a=(return)a
    6. |b=(return)b
    7. =(return)c

  • 4-14 Center 2 (7/15)
    1. (once)=(end)<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<c<c<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    2. a<=(start)a
    3. b<=(start)b
    4. ac<c=ccc<
    5. bc<c=ccc<
    6. c<=(start)c
    7. (once)ccc=

  • 4-15 Expansion (8/13)
    1. (once)=||||||||||||||||||||||||||||||
    2. ||||||a=a|||||
    3. ||||||b=b|||||
    4. ||||||c=c|||||
    5. |a=aa
    6. |b=bb
    7. |c=cc
    8. |=

  • 4-16 Merge (4/9)
    1. a,,=(start)a
    2. b,,=(start)b
    3. |=(end),
    4. ,=||,|,|,|,|,|,|,|,||,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Chapter 5: Math
  • 5-1 Count (3/7)
    1. a1=1aa
    2. a0=1a
    3. 1=a

  • 5-2 A+1 (4/4)
    1. (once)=(end)a
    2. 1a=a0
    3. 0a=1
    4. a=1

  • 5-3 A+B (5/9)
    1. (once)=||||||||||||||||||||||||||||||
    2. 1+11111=+111110
    3. 0+11111=1
    4. +11111=1
    5. |=(end)+11111

  • 5-4 A-B (6/8)
    1. 1|=(end)|0-
    2. 0|0=|01
    3. -0=-
    4. -|0-=
    5. -1=|0-1
    6. -=(start)-|0-

  • 5-5 A*B (8/28)
    1. 10000000000=00000000001|
    2. |0000000000=0000000000|
    3. 0100000|||||||||||||||||||||||||||=(start)0
    4. 1100000|||||||||||||||||||||||||||1=100000|||||||||||||||||||||||||||10
    5. (start)0=
    6. (start)|=(end)0000000000
    7. |=1000000100000||||||||||||||||||||||||||||||||||||||||||||||||||||||1
    8. *=||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

  • 5-6 A/B (11/40)
    1. (once)=(end)\,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/,\/0,
    2. 0,/=,/1
    3. /1,/1=/1
    4. 1,/=0
    5. /0,\/,=/0,
    6. ,/,\/=
    7. /0,,\/=(start),/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/
    8. /,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,//=(start),/,\/11111
    9. ,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/=(end)/0,\
    10. ,/0,\//0,\=/11110/0,,\/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/,/
    11. \=(end),\/
Chapter 6: Aftermath
  • 6-1 Hello Again (4/4)
    1. worldhello=
    2. a=helloworld
    3. b=helloworld
    4. c=helloworld

  • 6-2 Palindrome 2 (9/24)
    1. eeeeee|eeee=|ee
    2. ee|=|ee
    3. |eeeee=
    4. ea=e||e||e
    5. b=aa|||e|e|e||e||||e|e
    6. c=aa|||e|e|e||||e|e|e||||e|e
    7. aa=true
    8. |e=eeeee
    9. truee=false

  • 6-3 To B or not to B 2 (6/13)
    1. a=ccccccc|ccccccc
    2. ccccccc|cccccccccccccccccccc=b
    3. cccccccccccccccccccc|ccccccc=b
    4. cccccccb=ccccccccccccccccccccb
    5. bccccccc=bcccccccccccccccccccc
    6. ccccccc|cccccc=
Workshop: kazuei's problem
- Can you solve my problems? -
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3456583893
10 Comments
カズエイ  [author] 8 hours ago 
- Record change -
5-5 A*B
9 lines → 8 lines

I'm pretty sure this is the end of it. Maybe.....
カズエイ  [author] 13 Sep @ 4:35pm 
- Record change -
5-3 A+B
6 lines → 5 lines

Why hasn't this been discovered before?
カズエイ  [author] 12 Sep @ 9:02pm 
- Record change -
5-5 A*B
10 lines → 9 lines

This game is bloody deep, I tell you...!
カズエイ  [author] 29 Jul @ 5:18pm 
- Record change -
4-16 Merge
5 lines → 4 lines

Lately, you keep surprising me.
yao11617  [author] 29 Jul @ 5:54am 
4 line solution for 4-16

axx=(start)a
bxx=(start)b
y=(end)x
,=yyxyxyxyxyxyxyxyxyxyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

This game is not over yet. マジ (´・ω・`)
カズエイ  [author] 20 Jul @ 5:28pm 
A new solution has been discovered by yao11617!
https://gtm.steamproxy.vip/app/1720850/discussions/0/595148560243110823/

- Record change -
6-2 Palindrome 2
11 lines → 9 lines

This game was not yet over... エッ? (;゚⊿゚)ノ マジ?
カズエイ  [author] 20 Jul @ 7:57am 
Thank you!
If you like, you can try to solve my problem. I haven't received any answers from anyone yet.
2147483648 20 Jul @ 2:44am 
Wow, this is so clever! I never thought that the last three lines of add 1 in 5-6 can be removed! I haven't read it clearly now, let me think about it first.
カズエイ  [author] 19 Jul @ 10:25pm 
I forgot to set the language of this guide to English.
The Cyclical Submarine 8 Apr @ 1:03pm 
masterful work! :)