input_test
stringlengths 19
23
| scratchpad
stringlengths 151
283
| result_final
stringlengths 1
4
|
---|---|---|
Input:
976+979
Target:
| Input:
976+979
Target:
<scratch>
[9,7,6] has 3 digits.
[9,7,9] has 3 digits.
[9,7,6] + [9,7,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[9,7] + [9,7] , A=[5] , C=1 , 7+7+1=15 , A->5 , C->1
[9] + [9] , A=[5,5] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,5,5] C=1 , END
</scratch>
1955
| 1955 |
Input:
775+425
Target:
| Input:
775+425
Target:
<scratch>
[7,7,5] has 3 digits.
[4,2,5] has 3 digits.
[7,7,5] + [4,2,5] , A=[] , C=0 , 5+5+0=10 , A->0 , C->1
[7,7] + [4,2] , A=[0] , C=1 , 7+2+1=10 , A->0 , C->1
[7] + [4] , A=[0,0] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,0,0] C=1 , END
</scratch>
1200
| 1200 |
Input:
578+597
Target:
| Input:
578+597
Target:
<scratch>
[5,7,8] has 3 digits.
[5,9,7] has 3 digits.
[5,7,8] + [5,9,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[5,7] + [5,9] , A=[5] , C=1 , 7+9+1=17 , A->7 , C->1
[5] + [5] , A=[7,5] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,7,5] C=1 , END
</scratch>
1175
| 1175 |
Input:
125+988
Target:
| Input:
125+988
Target:
<scratch>
[1,2,5] has 3 digits.
[9,8,8] has 3 digits.
[1,2,5] + [9,8,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[1,2] + [9,8] , A=[3] , C=1 , 2+8+1=11 , A->1 , C->1
[1] + [9] , A=[1,3] , C=1 , 1+9+1=11 , A->1 , C->1
[] + [] , A=[1,1,3] C=1 , END
</scratch>
1113
| 1113 |
Input:
262+758
Target:
| Input:
262+758
Target:
<scratch>
[2,6,2] has 3 digits.
[7,5,8] has 3 digits.
[2,6,2] + [7,5,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[2,6] + [7,5] , A=[0] , C=1 , 6+5+1=12 , A->2 , C->1
[2] + [7] , A=[2,0] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,2,0] C=1 , END
</scratch>
1020
| 1020 |
Input:
753+747
Target:
| Input:
753+747
Target:
<scratch>
[7,5,3] has 3 digits.
[7,4,7] has 3 digits.
[7,5,3] + [7,4,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[7,5] + [7,4] , A=[0] , C=1 , 5+4+1=10 , A->0 , C->1
[7] + [7] , A=[0,0] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,0,0] C=1 , END
</scratch>
1500
| 1500 |
Input:
985+386
Target:
| Input:
985+386
Target:
<scratch>
[9,8,5] has 3 digits.
[3,8,6] has 3 digits.
[9,8,5] + [3,8,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[9,8] + [3,8] , A=[1] , C=1 , 8+8+1=17 , A->7 , C->1
[9] + [3] , A=[7,1] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,7,1] C=1 , END
</scratch>
1371
| 1371 |
Input:
999+429
Target:
| Input:
999+429
Target:
<scratch>
[9,9,9] has 3 digits.
[4,2,9] has 3 digits.
[9,9,9] + [4,2,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[9,9] + [4,2] , A=[8] , C=1 , 9+2+1=12 , A->2 , C->1
[9] + [4] , A=[2,8] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,2,8] C=1 , END
</scratch>
1428
| 1428 |
Input:
769+886
Target:
| Input:
769+886
Target:
<scratch>
[7,6,9] has 3 digits.
[8,8,6] has 3 digits.
[7,6,9] + [8,8,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[7,6] + [8,8] , A=[5] , C=1 , 6+8+1=15 , A->5 , C->1
[7] + [8] , A=[5,5] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,5,5] C=1 , END
</scratch>
1655
| 1655 |
Input:
795+649
Target:
| Input:
795+649
Target:
<scratch>
[7,9,5] has 3 digits.
[6,4,9] has 3 digits.
[7,9,5] + [6,4,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[7,9] + [6,4] , A=[4] , C=1 , 9+4+1=14 , A->4 , C->1
[7] + [6] , A=[4,4] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,4,4] C=1 , END
</scratch>
1444
| 1444 |
Input:
169+984
Target:
| Input:
169+984
Target:
<scratch>
[1,6,9] has 3 digits.
[9,8,4] has 3 digits.
[1,6,9] + [9,8,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[1,6] + [9,8] , A=[3] , C=1 , 6+8+1=15 , A->5 , C->1
[1] + [9] , A=[5,3] , C=1 , 1+9+1=11 , A->1 , C->1
[] + [] , A=[1,5,3] C=1 , END
</scratch>
1153
| 1153 |
Input:
808+592
Target:
| Input:
808+592
Target:
<scratch>
[8,0,8] has 3 digits.
[5,9,2] has 3 digits.
[8,0,8] + [5,9,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[8,0] + [5,9] , A=[0] , C=1 , 0+9+1=10 , A->0 , C->1
[8] + [5] , A=[0,0] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,0,0] C=1 , END
</scratch>
1400
| 1400 |
Input:
466+585
Target:
| Input:
466+585
Target:
<scratch>
[4,6,6] has 3 digits.
[5,8,5] has 3 digits.
[4,6,6] + [5,8,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[4,6] + [5,8] , A=[1] , C=1 , 6+8+1=15 , A->5 , C->1
[4] + [5] , A=[5,1] , C=1 , 4+5+1=10 , A->0 , C->1
[] + [] , A=[0,5,1] C=1 , END
</scratch>
1051
| 1051 |
Input:
845+197
Target:
| Input:
845+197
Target:
<scratch>
[8,4,5] has 3 digits.
[1,9,7] has 3 digits.
[8,4,5] + [1,9,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[8,4] + [1,9] , A=[2] , C=1 , 4+9+1=14 , A->4 , C->1
[8] + [1] , A=[4,2] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,4,2] C=1 , END
</scratch>
1042
| 1042 |
Input:
593+979
Target:
| Input:
593+979
Target:
<scratch>
[5,9,3] has 3 digits.
[9,7,9] has 3 digits.
[5,9,3] + [9,7,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[5,9] + [9,7] , A=[2] , C=1 , 9+7+1=17 , A->7 , C->1
[5] + [9] , A=[7,2] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,7,2] C=1 , END
</scratch>
1572
| 1572 |
Input:
789+224
Target:
| Input:
789+224
Target:
<scratch>
[7,8,9] has 3 digits.
[2,2,4] has 3 digits.
[7,8,9] + [2,2,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[7,8] + [2,2] , A=[3] , C=1 , 8+2+1=11 , A->1 , C->1
[7] + [2] , A=[1,3] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,1,3] C=1 , END
</scratch>
1013
| 1013 |
Input:
879+997
Target:
| Input:
879+997
Target:
<scratch>
[8,7,9] has 3 digits.
[9,9,7] has 3 digits.
[8,7,9] + [9,9,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[8,7] + [9,9] , A=[6] , C=1 , 7+9+1=17 , A->7 , C->1
[8] + [9] , A=[7,6] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,7,6] C=1 , END
</scratch>
1876
| 1876 |
Input:
784+249
Target:
| Input:
784+249
Target:
<scratch>
[7,8,4] has 3 digits.
[2,4,9] has 3 digits.
[7,8,4] + [2,4,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[7,8] + [2,4] , A=[3] , C=1 , 8+4+1=13 , A->3 , C->1
[7] + [2] , A=[3,3] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,3,3] C=1 , END
</scratch>
1033
| 1033 |
Input:
998+739
Target:
| Input:
998+739
Target:
<scratch>
[9,9,8] has 3 digits.
[7,3,9] has 3 digits.
[9,9,8] + [7,3,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[9,9] + [7,3] , A=[7] , C=1 , 9+3+1=13 , A->3 , C->1
[9] + [7] , A=[3,7] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,3,7] C=1 , END
</scratch>
1737
| 1737 |
Input:
74+986
Target:
| Input:
74+986
Target:
<scratch>
[7,4] has 2 digits.
[9,8,6] has 3 digits.
[7,4] + [9,8,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[7] + [9,8] , A=[0] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [9] , A=[6,0] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,6,0] C=1 , END
</scratch>
1060
| 1060 |
Input:
276+847
Target:
| Input:
276+847
Target:
<scratch>
[2,7,6] has 3 digits.
[8,4,7] has 3 digits.
[2,7,6] + [8,4,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[2,7] + [8,4] , A=[3] , C=1 , 7+4+1=12 , A->2 , C->1
[2] + [8] , A=[2,3] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,2,3] C=1 , END
</scratch>
1123
| 1123 |
Input:
156+899
Target:
| Input:
156+899
Target:
<scratch>
[1,5,6] has 3 digits.
[8,9,9] has 3 digits.
[1,5,6] + [8,9,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[1,5] + [8,9] , A=[5] , C=1 , 5+9+1=15 , A->5 , C->1
[1] + [8] , A=[5,5] , C=1 , 1+8+1=10 , A->0 , C->1
[] + [] , A=[0,5,5] C=1 , END
</scratch>
1055
| 1055 |
Input:
663+578
Target:
| Input:
663+578
Target:
<scratch>
[6,6,3] has 3 digits.
[5,7,8] has 3 digits.
[6,6,3] + [5,7,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[6,6] + [5,7] , A=[1] , C=1 , 6+7+1=14 , A->4 , C->1
[6] + [5] , A=[4,1] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,4,1] C=1 , END
</scratch>
1241
| 1241 |
Input:
371+949
Target:
| Input:
371+949
Target:
<scratch>
[3,7,1] has 3 digits.
[9,4,9] has 3 digits.
[3,7,1] + [9,4,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[3,7] + [9,4] , A=[0] , C=1 , 7+4+1=12 , A->2 , C->1
[3] + [9] , A=[2,0] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,2,0] C=1 , END
</scratch>
1320
| 1320 |
Input:
336+788
Target:
| Input:
336+788
Target:
<scratch>
[3,3,6] has 3 digits.
[7,8,8] has 3 digits.
[3,3,6] + [7,8,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[3,3] + [7,8] , A=[4] , C=1 , 3+8+1=12 , A->2 , C->1
[3] + [7] , A=[2,4] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,2,4] C=1 , END
</scratch>
1124
| 1124 |
Input:
878+598
Target:
| Input:
878+598
Target:
<scratch>
[8,7,8] has 3 digits.
[5,9,8] has 3 digits.
[8,7,8] + [5,9,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[8,7] + [5,9] , A=[6] , C=1 , 7+9+1=17 , A->7 , C->1
[8] + [5] , A=[7,6] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,7,6] C=1 , END
</scratch>
1476
| 1476 |
Input:
763+369
Target:
| Input:
763+369
Target:
<scratch>
[7,6,3] has 3 digits.
[3,6,9] has 3 digits.
[7,6,3] + [3,6,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[7,6] + [3,6] , A=[2] , C=1 , 6+6+1=13 , A->3 , C->1
[7] + [3] , A=[3,2] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,3,2] C=1 , END
</scratch>
1132
| 1132 |
Input:
889+593
Target:
| Input:
889+593
Target:
<scratch>
[8,8,9] has 3 digits.
[5,9,3] has 3 digits.
[8,8,9] + [5,9,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[8,8] + [5,9] , A=[2] , C=1 , 8+9+1=18 , A->8 , C->1
[8] + [5] , A=[8,2] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,8,2] C=1 , END
</scratch>
1482
| 1482 |
Input:
658+972
Target:
| Input:
658+972
Target:
<scratch>
[6,5,8] has 3 digits.
[9,7,2] has 3 digits.
[6,5,8] + [9,7,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[6,5] + [9,7] , A=[0] , C=1 , 5+7+1=13 , A->3 , C->1
[6] + [9] , A=[3,0] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,3,0] C=1 , END
</scratch>
1630
| 1630 |
Input:
966+547
Target:
| Input:
966+547
Target:
<scratch>
[9,6,6] has 3 digits.
[5,4,7] has 3 digits.
[9,6,6] + [5,4,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[9,6] + [5,4] , A=[3] , C=1 , 6+4+1=11 , A->1 , C->1
[9] + [5] , A=[1,3] , C=1 , 9+5+1=15 , A->5 , C->1
[] + [] , A=[5,1,3] C=1 , END
</scratch>
1513
| 1513 |
Input:
564+676
Target:
| Input:
564+676
Target:
<scratch>
[5,6,4] has 3 digits.
[6,7,6] has 3 digits.
[5,6,4] + [6,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[5,6] + [6,7] , A=[0] , C=1 , 6+7+1=14 , A->4 , C->1
[5] + [6] , A=[4,0] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,4,0] C=1 , END
</scratch>
1240
| 1240 |
Input:
986+119
Target:
| Input:
986+119
Target:
<scratch>
[9,8,6] has 3 digits.
[1,1,9] has 3 digits.
[9,8,6] + [1,1,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[9,8] + [1,1] , A=[5] , C=1 , 8+1+1=10 , A->0 , C->1
[9] + [1] , A=[0,5] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,0,5] C=1 , END
</scratch>
1105
| 1105 |
Input:
884+267
Target:
| Input:
884+267
Target:
<scratch>
[8,8,4] has 3 digits.
[2,6,7] has 3 digits.
[8,8,4] + [2,6,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[8,8] + [2,6] , A=[1] , C=1 , 8+6+1=15 , A->5 , C->1
[8] + [2] , A=[5,1] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,5,1] C=1 , END
</scratch>
1151
| 1151 |
Input:
958+878
Target:
| Input:
958+878
Target:
<scratch>
[9,5,8] has 3 digits.
[8,7,8] has 3 digits.
[9,5,8] + [8,7,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[9,5] + [8,7] , A=[6] , C=1 , 5+7+1=13 , A->3 , C->1
[9] + [8] , A=[3,6] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,3,6] C=1 , END
</scratch>
1836
| 1836 |
Input:
436+964
Target:
| Input:
436+964
Target:
<scratch>
[4,3,6] has 3 digits.
[9,6,4] has 3 digits.
[4,3,6] + [9,6,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[4,3] + [9,6] , A=[0] , C=1 , 3+6+1=10 , A->0 , C->1
[4] + [9] , A=[0,0] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,0,0] C=1 , END
</scratch>
1400
| 1400 |
Input:
218+789
Target:
| Input:
218+789
Target:
<scratch>
[2,1,8] has 3 digits.
[7,8,9] has 3 digits.
[2,1,8] + [7,8,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[2,1] + [7,8] , A=[7] , C=1 , 1+8+1=10 , A->0 , C->1
[2] + [7] , A=[0,7] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,0,7] C=1 , END
</scratch>
1007
| 1007 |
Input:
999+731
Target:
| Input:
999+731
Target:
<scratch>
[9,9,9] has 3 digits.
[7,3,1] has 3 digits.
[9,9,9] + [7,3,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[9,9] + [7,3] , A=[0] , C=1 , 9+3+1=13 , A->3 , C->1
[9] + [7] , A=[3,0] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,3,0] C=1 , END
</scratch>
1730
| 1730 |
Input:
216+794
Target:
| Input:
216+794
Target:
<scratch>
[2,1,6] has 3 digits.
[7,9,4] has 3 digits.
[2,1,6] + [7,9,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[2,1] + [7,9] , A=[0] , C=1 , 1+9+1=11 , A->1 , C->1
[2] + [7] , A=[1,0] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,1,0] C=1 , END
</scratch>
1010
| 1010 |
Input:
967+457
Target:
| Input:
967+457
Target:
<scratch>
[9,6,7] has 3 digits.
[4,5,7] has 3 digits.
[9,6,7] + [4,5,7] , A=[] , C=0 , 7+7+0=14 , A->4 , C->1
[9,6] + [4,5] , A=[4] , C=1 , 6+5+1=12 , A->2 , C->1
[9] + [4] , A=[2,4] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,2,4] C=1 , END
</scratch>
1424
| 1424 |
Input:
975+57
Target:
| Input:
975+57
Target:
<scratch>
[9,7,5] has 3 digits.
[5,7] has 2 digits.
[9,7,5] + [5,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[9,7] + [5] , A=[2] , C=1 , 7+5+1=13 , A->3 , C->1
[9] + [] , A=[3,2] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,3,2] C=1 , END
</scratch>
1032
| 1032 |
Input:
488+586
Target:
| Input:
488+586
Target:
<scratch>
[4,8,8] has 3 digits.
[5,8,6] has 3 digits.
[4,8,8] + [5,8,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[4,8] + [5,8] , A=[4] , C=1 , 8+8+1=17 , A->7 , C->1
[4] + [5] , A=[7,4] , C=1 , 4+5+1=10 , A->0 , C->1
[] + [] , A=[0,7,4] C=1 , END
</scratch>
1074
| 1074 |
Input:
819+196
Target:
| Input:
819+196
Target:
<scratch>
[8,1,9] has 3 digits.
[1,9,6] has 3 digits.
[8,1,9] + [1,9,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[8,1] + [1,9] , A=[5] , C=1 , 1+9+1=11 , A->1 , C->1
[8] + [1] , A=[1,5] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,1,5] C=1 , END
</scratch>
1015
| 1015 |
Input:
749+863
Target:
| Input:
749+863
Target:
<scratch>
[7,4,9] has 3 digits.
[8,6,3] has 3 digits.
[7,4,9] + [8,6,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[7,4] + [8,6] , A=[2] , C=1 , 4+6+1=11 , A->1 , C->1
[7] + [8] , A=[1,2] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,1,2] C=1 , END
</scratch>
1612
| 1612 |
Input:
968+95
Target:
| Input:
968+95
Target:
<scratch>
[9,6,8] has 3 digits.
[9,5] has 2 digits.
[9,6,8] + [9,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[9,6] + [9] , A=[3] , C=1 , 6+9+1=16 , A->6 , C->1
[9] + [] , A=[6,3] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,6,3] C=1 , END
</scratch>
1063
| 1063 |
Input:
977+928
Target:
| Input:
977+928
Target:
<scratch>
[9,7,7] has 3 digits.
[9,2,8] has 3 digits.
[9,7,7] + [9,2,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[9,7] + [9,2] , A=[5] , C=1 , 7+2+1=10 , A->0 , C->1
[9] + [9] , A=[0,5] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,0,5] C=1 , END
</scratch>
1905
| 1905 |
Input:
77+973
Target:
| Input:
77+973
Target:
<scratch>
[7,7] has 2 digits.
[9,7,3] has 3 digits.
[7,7] + [9,7,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[7] + [9,7] , A=[0] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [9] , A=[5,0] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,5,0] C=1 , END
</scratch>
1050
| 1050 |
Input:
987+364
Target:
| Input:
987+364
Target:
<scratch>
[9,8,7] has 3 digits.
[3,6,4] has 3 digits.
[9,8,7] + [3,6,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[9,8] + [3,6] , A=[1] , C=1 , 8+6+1=15 , A->5 , C->1
[9] + [3] , A=[5,1] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,5,1] C=1 , END
</scratch>
1351
| 1351 |
Input:
887+365
Target:
| Input:
887+365
Target:
<scratch>
[8,8,7] has 3 digits.
[3,6,5] has 3 digits.
[8,8,7] + [3,6,5] , A=[] , C=0 , 7+5+0=12 , A->2 , C->1
[8,8] + [3,6] , A=[2] , C=1 , 8+6+1=15 , A->5 , C->1
[8] + [3] , A=[5,2] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,5,2] C=1 , END
</scratch>
1252
| 1252 |
Input:
598+985
Target:
| Input:
598+985
Target:
<scratch>
[5,9,8] has 3 digits.
[9,8,5] has 3 digits.
[5,9,8] + [9,8,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[5,9] + [9,8] , A=[3] , C=1 , 9+8+1=18 , A->8 , C->1
[5] + [9] , A=[8,3] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,8,3] C=1 , END
</scratch>
1583
| 1583 |
Input:
957+759
Target:
| Input:
957+759
Target:
<scratch>
[9,5,7] has 3 digits.
[7,5,9] has 3 digits.
[9,5,7] + [7,5,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[9,5] + [7,5] , A=[6] , C=1 , 5+5+1=11 , A->1 , C->1
[9] + [7] , A=[1,6] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,1,6] C=1 , END
</scratch>
1716
| 1716 |
Input:
988+496
Target:
| Input:
988+496
Target:
<scratch>
[9,8,8] has 3 digits.
[4,9,6] has 3 digits.
[9,8,8] + [4,9,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[9,8] + [4,9] , A=[4] , C=1 , 8+9+1=18 , A->8 , C->1
[9] + [4] , A=[8,4] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,8,4] C=1 , END
</scratch>
1484
| 1484 |
Input:
955+687
Target:
| Input:
955+687
Target:
<scratch>
[9,5,5] has 3 digits.
[6,8,7] has 3 digits.
[9,5,5] + [6,8,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[9,5] + [6,8] , A=[2] , C=1 , 5+8+1=14 , A->4 , C->1
[9] + [6] , A=[4,2] , C=1 , 9+6+1=16 , A->6 , C->1
[] + [] , A=[6,4,2] C=1 , END
</scratch>
1642
| 1642 |
Input:
286+947
Target:
| Input:
286+947
Target:
<scratch>
[2,8,6] has 3 digits.
[9,4,7] has 3 digits.
[2,8,6] + [9,4,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[2,8] + [9,4] , A=[3] , C=1 , 8+4+1=13 , A->3 , C->1
[2] + [9] , A=[3,3] , C=1 , 2+9+1=12 , A->2 , C->1
[] + [] , A=[2,3,3] C=1 , END
</scratch>
1233
| 1233 |
Input:
866+734
Target:
| Input:
866+734
Target:
<scratch>
[8,6,6] has 3 digits.
[7,3,4] has 3 digits.
[8,6,6] + [7,3,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[8,6] + [7,3] , A=[0] , C=1 , 6+3+1=10 , A->0 , C->1
[8] + [7] , A=[0,0] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,0,0] C=1 , END
</scratch>
1600
| 1600 |
Input:
493+778
Target:
| Input:
493+778
Target:
<scratch>
[4,9,3] has 3 digits.
[7,7,8] has 3 digits.
[4,9,3] + [7,7,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[4,9] + [7,7] , A=[1] , C=1 , 9+7+1=17 , A->7 , C->1
[4] + [7] , A=[7,1] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,7,1] C=1 , END
</scratch>
1271
| 1271 |
Input:
939+468
Target:
| Input:
939+468
Target:
<scratch>
[9,3,9] has 3 digits.
[4,6,8] has 3 digits.
[9,3,9] + [4,6,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[9,3] + [4,6] , A=[7] , C=1 , 3+6+1=10 , A->0 , C->1
[9] + [4] , A=[0,7] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,0,7] C=1 , END
</scratch>
1407
| 1407 |
Input:
763+749
Target:
| Input:
763+749
Target:
<scratch>
[7,6,3] has 3 digits.
[7,4,9] has 3 digits.
[7,6,3] + [7,4,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[7,6] + [7,4] , A=[2] , C=1 , 6+4+1=11 , A->1 , C->1
[7] + [7] , A=[1,2] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,1,2] C=1 , END
</scratch>
1512
| 1512 |
Input:
878+289
Target:
| Input:
878+289
Target:
<scratch>
[8,7,8] has 3 digits.
[2,8,9] has 3 digits.
[8,7,8] + [2,8,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[8,7] + [2,8] , A=[7] , C=1 , 7+8+1=16 , A->6 , C->1
[8] + [2] , A=[6,7] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,6,7] C=1 , END
</scratch>
1167
| 1167 |
Input:
793+459
Target:
| Input:
793+459
Target:
<scratch>
[7,9,3] has 3 digits.
[4,5,9] has 3 digits.
[7,9,3] + [4,5,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[7,9] + [4,5] , A=[2] , C=1 , 9+5+1=15 , A->5 , C->1
[7] + [4] , A=[5,2] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,5,2] C=1 , END
</scratch>
1252
| 1252 |
Input:
535+489
Target:
| Input:
535+489
Target:
<scratch>
[5,3,5] has 3 digits.
[4,8,9] has 3 digits.
[5,3,5] + [4,8,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[5,3] + [4,8] , A=[4] , C=1 , 3+8+1=12 , A->2 , C->1
[5] + [4] , A=[2,4] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,2,4] C=1 , END
</scratch>
1024
| 1024 |
Input:
796+757
Target:
| Input:
796+757
Target:
<scratch>
[7,9,6] has 3 digits.
[7,5,7] has 3 digits.
[7,9,6] + [7,5,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[7,9] + [7,5] , A=[3] , C=1 , 9+5+1=15 , A->5 , C->1
[7] + [7] , A=[5,3] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,5,3] C=1 , END
</scratch>
1553
| 1553 |
Input:
795+709
Target:
| Input:
795+709
Target:
<scratch>
[7,9,5] has 3 digits.
[7,0,9] has 3 digits.
[7,9,5] + [7,0,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[7,9] + [7,0] , A=[4] , C=1 , 9+0+1=10 , A->0 , C->1
[7] + [7] , A=[0,4] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,0,4] C=1 , END
</scratch>
1504
| 1504 |
Input:
219+883
Target:
| Input:
219+883
Target:
<scratch>
[2,1,9] has 3 digits.
[8,8,3] has 3 digits.
[2,1,9] + [8,8,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[2,1] + [8,8] , A=[2] , C=1 , 1+8+1=10 , A->0 , C->1
[2] + [8] , A=[0,2] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,0,2] C=1 , END
</scratch>
1102
| 1102 |
Input:
679+368
Target:
| Input:
679+368
Target:
<scratch>
[6,7,9] has 3 digits.
[3,6,8] has 3 digits.
[6,7,9] + [3,6,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[6,7] + [3,6] , A=[7] , C=1 , 7+6+1=14 , A->4 , C->1
[6] + [3] , A=[4,7] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,4,7] C=1 , END
</scratch>
1047
| 1047 |
Input:
996+465
Target:
| Input:
996+465
Target:
<scratch>
[9,9,6] has 3 digits.
[4,6,5] has 3 digits.
[9,9,6] + [4,6,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[9,9] + [4,6] , A=[1] , C=1 , 9+6+1=16 , A->6 , C->1
[9] + [4] , A=[6,1] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,6,1] C=1 , END
</scratch>
1461
| 1461 |
Input:
989+241
Target:
| Input:
989+241
Target:
<scratch>
[9,8,9] has 3 digits.
[2,4,1] has 3 digits.
[9,8,9] + [2,4,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[9,8] + [2,4] , A=[0] , C=1 , 8+4+1=13 , A->3 , C->1
[9] + [2] , A=[3,0] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,3,0] C=1 , END
</scratch>
1230
| 1230 |
Input:
975+857
Target:
| Input:
975+857
Target:
<scratch>
[9,7,5] has 3 digits.
[8,5,7] has 3 digits.
[9,7,5] + [8,5,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[9,7] + [8,5] , A=[2] , C=1 , 7+5+1=13 , A->3 , C->1
[9] + [8] , A=[3,2] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,3,2] C=1 , END
</scratch>
1832
| 1832 |
Input:
764+349
Target:
| Input:
764+349
Target:
<scratch>
[7,6,4] has 3 digits.
[3,4,9] has 3 digits.
[7,6,4] + [3,4,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[7,6] + [3,4] , A=[3] , C=1 , 6+4+1=11 , A->1 , C->1
[7] + [3] , A=[1,3] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,1,3] C=1 , END
</scratch>
1113
| 1113 |
Input:
467+886
Target:
| Input:
467+886
Target:
<scratch>
[4,6,7] has 3 digits.
[8,8,6] has 3 digits.
[4,6,7] + [8,8,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[4,6] + [8,8] , A=[3] , C=1 , 6+8+1=15 , A->5 , C->1
[4] + [8] , A=[5,3] , C=1 , 4+8+1=13 , A->3 , C->1
[] + [] , A=[3,5,3] C=1 , END
</scratch>
1353
| 1353 |
Input:
587+725
Target:
| Input:
587+725
Target:
<scratch>
[5,8,7] has 3 digits.
[7,2,5] has 3 digits.
[5,8,7] + [7,2,5] , A=[] , C=0 , 7+5+0=12 , A->2 , C->1
[5,8] + [7,2] , A=[2] , C=1 , 8+2+1=11 , A->1 , C->1
[5] + [7] , A=[1,2] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,1,2] C=1 , END
</scratch>
1312
| 1312 |
Input:
449+684
Target:
| Input:
449+684
Target:
<scratch>
[4,4,9] has 3 digits.
[6,8,4] has 3 digits.
[4,4,9] + [6,8,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[4,4] + [6,8] , A=[3] , C=1 , 4+8+1=13 , A->3 , C->1
[4] + [6] , A=[3,3] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,3,3] C=1 , END
</scratch>
1133
| 1133 |
Input:
899+763
Target:
| Input:
899+763
Target:
<scratch>
[8,9,9] has 3 digits.
[7,6,3] has 3 digits.
[8,9,9] + [7,6,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[8,9] + [7,6] , A=[2] , C=1 , 9+6+1=16 , A->6 , C->1
[8] + [7] , A=[6,2] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,6,2] C=1 , END
</scratch>
1662
| 1662 |
Input:
878+649
Target:
| Input:
878+649
Target:
<scratch>
[8,7,8] has 3 digits.
[6,4,9] has 3 digits.
[8,7,8] + [6,4,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[8,7] + [6,4] , A=[7] , C=1 , 7+4+1=12 , A->2 , C->1
[8] + [6] , A=[2,7] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,2,7] C=1 , END
</scratch>
1527
| 1527 |
Input:
569+777
Target:
| Input:
569+777
Target:
<scratch>
[5,6,9] has 3 digits.
[7,7,7] has 3 digits.
[5,6,9] + [7,7,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[5,6] + [7,7] , A=[6] , C=1 , 6+7+1=14 , A->4 , C->1
[5] + [7] , A=[4,6] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,4,6] C=1 , END
</scratch>
1346
| 1346 |
Input:
449+861
Target:
| Input:
449+861
Target:
<scratch>
[4,4,9] has 3 digits.
[8,6,1] has 3 digits.
[4,4,9] + [8,6,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[4,4] + [8,6] , A=[0] , C=1 , 4+6+1=11 , A->1 , C->1
[4] + [8] , A=[1,0] , C=1 , 4+8+1=13 , A->3 , C->1
[] + [] , A=[3,1,0] C=1 , END
</scratch>
1310
| 1310 |
Input:
667+663
Target:
| Input:
667+663
Target:
<scratch>
[6,6,7] has 3 digits.
[6,6,3] has 3 digits.
[6,6,7] + [6,6,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[6,6] + [6,6] , A=[0] , C=1 , 6+6+1=13 , A->3 , C->1
[6] + [6] , A=[3,0] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,3,0] C=1 , END
</scratch>
1330
| 1330 |
Input:
846+666
Target:
| Input:
846+666
Target:
<scratch>
[8,4,6] has 3 digits.
[6,6,6] has 3 digits.
[8,4,6] + [6,6,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[8,4] + [6,6] , A=[2] , C=1 , 4+6+1=11 , A->1 , C->1
[8] + [6] , A=[1,2] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,1,2] C=1 , END
</scratch>
1512
| 1512 |
Input:
891+659
Target:
| Input:
891+659
Target:
<scratch>
[8,9,1] has 3 digits.
[6,5,9] has 3 digits.
[8,9,1] + [6,5,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[8,9] + [6,5] , A=[0] , C=1 , 9+5+1=15 , A->5 , C->1
[8] + [6] , A=[5,0] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,5,0] C=1 , END
</scratch>
1550
| 1550 |
Input:
845+798
Target:
| Input:
845+798
Target:
<scratch>
[8,4,5] has 3 digits.
[7,9,8] has 3 digits.
[8,4,5] + [7,9,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[8,4] + [7,9] , A=[3] , C=1 , 4+9+1=14 , A->4 , C->1
[8] + [7] , A=[4,3] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,4,3] C=1 , END
</scratch>
1643
| 1643 |
Input:
867+374
Target:
| Input:
867+374
Target:
<scratch>
[8,6,7] has 3 digits.
[3,7,4] has 3 digits.
[8,6,7] + [3,7,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[8,6] + [3,7] , A=[1] , C=1 , 6+7+1=14 , A->4 , C->1
[8] + [3] , A=[4,1] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,4,1] C=1 , END
</scratch>
1241
| 1241 |
Input:
637+365
Target:
| Input:
637+365
Target:
<scratch>
[6,3,7] has 3 digits.
[3,6,5] has 3 digits.
[6,3,7] + [3,6,5] , A=[] , C=0 , 7+5+0=12 , A->2 , C->1
[6,3] + [3,6] , A=[2] , C=1 , 3+6+1=10 , A->0 , C->1
[6] + [3] , A=[0,2] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,0,2] C=1 , END
</scratch>
1002
| 1002 |
Input:
473+789
Target:
| Input:
473+789
Target:
<scratch>
[4,7,3] has 3 digits.
[7,8,9] has 3 digits.
[4,7,3] + [7,8,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[4,7] + [7,8] , A=[2] , C=1 , 7+8+1=16 , A->6 , C->1
[4] + [7] , A=[6,2] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,6,2] C=1 , END
</scratch>
1262
| 1262 |
Input:
439+594
Target:
| Input:
439+594
Target:
<scratch>
[4,3,9] has 3 digits.
[5,9,4] has 3 digits.
[4,3,9] + [5,9,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[4,3] + [5,9] , A=[3] , C=1 , 3+9+1=13 , A->3 , C->1
[4] + [5] , A=[3,3] , C=1 , 4+5+1=10 , A->0 , C->1
[] + [] , A=[0,3,3] C=1 , END
</scratch>
1033
| 1033 |
Input:
632+968
Target:
| Input:
632+968
Target:
<scratch>
[6,3,2] has 3 digits.
[9,6,8] has 3 digits.
[6,3,2] + [9,6,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[6,3] + [9,6] , A=[0] , C=1 , 3+6+1=10 , A->0 , C->1
[6] + [9] , A=[0,0] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,0,0] C=1 , END
</scratch>
1600
| 1600 |
Input:
988+98
Target:
| Input:
988+98
Target:
<scratch>
[9,8,8] has 3 digits.
[9,8] has 2 digits.
[9,8,8] + [9,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[9,8] + [9] , A=[6] , C=1 , 8+9+1=18 , A->8 , C->1
[9] + [] , A=[8,6] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,8,6] C=1 , END
</scratch>
1086
| 1086 |
Input:
653+988
Target:
| Input:
653+988
Target:
<scratch>
[6,5,3] has 3 digits.
[9,8,8] has 3 digits.
[6,5,3] + [9,8,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[6,5] + [9,8] , A=[1] , C=1 , 5+8+1=14 , A->4 , C->1
[6] + [9] , A=[4,1] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,4,1] C=1 , END
</scratch>
1641
| 1641 |
Input:
686+369
Target:
| Input:
686+369
Target:
<scratch>
[6,8,6] has 3 digits.
[3,6,9] has 3 digits.
[6,8,6] + [3,6,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[6,8] + [3,6] , A=[5] , C=1 , 8+6+1=15 , A->5 , C->1
[6] + [3] , A=[5,5] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,5,5] C=1 , END
</scratch>
1055
| 1055 |
Input:
597+658
Target:
| Input:
597+658
Target:
<scratch>
[5,9,7] has 3 digits.
[6,5,8] has 3 digits.
[5,9,7] + [6,5,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[5,9] + [6,5] , A=[5] , C=1 , 9+5+1=15 , A->5 , C->1
[5] + [6] , A=[5,5] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,5,5] C=1 , END
</scratch>
1255
| 1255 |
Input:
889+857
Target:
| Input:
889+857
Target:
<scratch>
[8,8,9] has 3 digits.
[8,5,7] has 3 digits.
[8,8,9] + [8,5,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[8,8] + [8,5] , A=[6] , C=1 , 8+5+1=14 , A->4 , C->1
[8] + [8] , A=[4,6] , C=1 , 8+8+1=17 , A->7 , C->1
[] + [] , A=[7,4,6] C=1 , END
</scratch>
1746
| 1746 |
Input:
558+495
Target:
| Input:
558+495
Target:
<scratch>
[5,5,8] has 3 digits.
[4,9,5] has 3 digits.
[5,5,8] + [4,9,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[5,5] + [4,9] , A=[3] , C=1 , 5+9+1=15 , A->5 , C->1
[5] + [4] , A=[5,3] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,5,3] C=1 , END
</scratch>
1053
| 1053 |
Input:
775+496
Target:
| Input:
775+496
Target:
<scratch>
[7,7,5] has 3 digits.
[4,9,6] has 3 digits.
[7,7,5] + [4,9,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[7,7] + [4,9] , A=[1] , C=1 , 7+9+1=17 , A->7 , C->1
[7] + [4] , A=[7,1] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,7,1] C=1 , END
</scratch>
1271
| 1271 |
Input:
866+765
Target:
| Input:
866+765
Target:
<scratch>
[8,6,6] has 3 digits.
[7,6,5] has 3 digits.
[8,6,6] + [7,6,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[8,6] + [7,6] , A=[1] , C=1 , 6+6+1=13 , A->3 , C->1
[8] + [7] , A=[3,1] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,3,1] C=1 , END
</scratch>
1631
| 1631 |
Input:
942+678
Target:
| Input:
942+678
Target:
<scratch>
[9,4,2] has 3 digits.
[6,7,8] has 3 digits.
[9,4,2] + [6,7,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[9,4] + [6,7] , A=[0] , C=1 , 4+7+1=12 , A->2 , C->1
[9] + [6] , A=[2,0] , C=1 , 9+6+1=16 , A->6 , C->1
[] + [] , A=[6,2,0] C=1 , END
</scratch>
1620
| 1620 |
Input:
787+617
Target:
| Input:
787+617
Target:
<scratch>
[7,8,7] has 3 digits.
[6,1,7] has 3 digits.
[7,8,7] + [6,1,7] , A=[] , C=0 , 7+7+0=14 , A->4 , C->1
[7,8] + [6,1] , A=[4] , C=1 , 8+1+1=10 , A->0 , C->1
[7] + [6] , A=[0,4] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,0,4] C=1 , END
</scratch>
1404
| 1404 |
Input:
186+889
Target:
| Input:
186+889
Target:
<scratch>
[1,8,6] has 3 digits.
[8,8,9] has 3 digits.
[1,8,6] + [8,8,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[1,8] + [8,8] , A=[5] , C=1 , 8+8+1=17 , A->7 , C->1
[1] + [8] , A=[7,5] , C=1 , 1+8+1=10 , A->0 , C->1
[] + [] , A=[0,7,5] C=1 , END
</scratch>
1075
| 1075 |
Input:
339+885
Target:
| Input:
339+885
Target:
<scratch>
[3,3,9] has 3 digits.
[8,8,5] has 3 digits.
[3,3,9] + [8,8,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[3,3] + [8,8] , A=[4] , C=1 , 3+8+1=12 , A->2 , C->1
[3] + [8] , A=[2,4] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,2,4] C=1 , END
</scratch>
1224
| 1224 |
Input:
994+67
Target:
| Input:
994+67
Target:
<scratch>
[9,9,4] has 3 digits.
[6,7] has 2 digits.
[9,9,4] + [6,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[9,9] + [6] , A=[1] , C=1 , 9+6+1=16 , A->6 , C->1
[9] + [] , A=[6,1] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,6,1] C=1 , END
</scratch>
1061
| 1061 |
Input:
677+357
Target:
| Input:
677+357
Target:
<scratch>
[6,7,7] has 3 digits.
[3,5,7] has 3 digits.
[6,7,7] + [3,5,7] , A=[] , C=0 , 7+7+0=14 , A->4 , C->1
[6,7] + [3,5] , A=[4] , C=1 , 7+5+1=13 , A->3 , C->1
[6] + [3] , A=[3,4] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,3,4] C=1 , END
</scratch>
1034
| 1034 |
Input:
779+265
Target:
| Input:
779+265
Target:
<scratch>
[7,7,9] has 3 digits.
[2,6,5] has 3 digits.
[7,7,9] + [2,6,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[7,7] + [2,6] , A=[4] , C=1 , 7+6+1=14 , A->4 , C->1
[7] + [2] , A=[4,4] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,4,4] C=1 , END
</scratch>
1044
| 1044 |
Input:
899+737
Target:
| Input:
899+737
Target:
<scratch>
[8,9,9] has 3 digits.
[7,3,7] has 3 digits.
[8,9,9] + [7,3,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[8,9] + [7,3] , A=[6] , C=1 , 9+3+1=13 , A->3 , C->1
[8] + [7] , A=[3,6] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,3,6] C=1 , END
</scratch>
1636
| 1636 |
Subsets and Splits