input_test
stringlengths 19
23
| scratchpad
stringlengths 151
283
| result_final
stringlengths 1
4
|
---|---|---|
Input:
728+785
Target:
| Input:
728+785
Target:
<scratch>
[7,2,8] has 3 digits.
[7,8,5] has 3 digits.
[7,2,8] + [7,8,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[7,2] + [7,8] , A=[3] , C=1 , 2+8+1=11 , A->1 , C->1
[7] + [7] , A=[1,3] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,1,3] C=1 , END
</scratch>
1513
| 1513 |
Input:
325+689
Target:
| Input:
325+689
Target:
<scratch>
[3,2,5] has 3 digits.
[6,8,9] has 3 digits.
[3,2,5] + [6,8,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[3,2] + [6,8] , A=[4] , C=1 , 2+8+1=11 , A->1 , C->1
[3] + [6] , A=[1,4] , C=1 , 3+6+1=10 , A->0 , C->1
[] + [] , A=[0,1,4] C=1 , END
</scratch>
1014
| 1014 |
Input:
899+205
Target:
| Input:
899+205
Target:
<scratch>
[8,9,9] has 3 digits.
[2,0,5] has 3 digits.
[8,9,9] + [2,0,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[8,9] + [2,0] , A=[4] , C=1 , 9+0+1=10 , A->0 , C->1
[8] + [2] , A=[0,4] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,0,4] C=1 , END
</scratch>
1104
| 1104 |
Input:
967+653
Target:
| Input:
967+653
Target:
<scratch>
[9,6,7] has 3 digits.
[6,5,3] has 3 digits.
[9,6,7] + [6,5,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[9,6] + [6,5] , A=[0] , C=1 , 6+5+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:
669+341
Target:
| Input:
669+341
Target:
<scratch>
[6,6,9] has 3 digits.
[3,4,1] has 3 digits.
[6,6,9] + [3,4,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[6,6] + [3,4] , A=[0] , C=1 , 6+4+1=11 , A->1 , C->1
[6] + [3] , A=[1,0] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,1,0] C=1 , END
</scratch>
1010
| 1010 |
Input:
999+819
Target:
| Input:
999+819
Target:
<scratch>
[9,9,9] has 3 digits.
[8,1,9] has 3 digits.
[9,9,9] + [8,1,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[9,9] + [8,1] , A=[8] , C=1 , 9+1+1=11 , A->1 , C->1
[9] + [8] , A=[1,8] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,1,8] C=1 , END
</scratch>
1818
| 1818 |
Input:
566+936
Target:
| Input:
566+936
Target:
<scratch>
[5,6,6] has 3 digits.
[9,3,6] has 3 digits.
[5,6,6] + [9,3,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[5,6] + [9,3] , A=[2] , C=1 , 6+3+1=10 , A->0 , C->1
[5] + [9] , A=[0,2] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,0,2] C=1 , END
</scratch>
1502
| 1502 |
Input:
339+966
Target:
| Input:
339+966
Target:
<scratch>
[3,3,9] has 3 digits.
[9,6,6] has 3 digits.
[3,3,9] + [9,6,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[3,3] + [9,6] , A=[5] , C=1 , 3+6+1=10 , A->0 , C->1
[3] + [9] , A=[0,5] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,0,5] C=1 , END
</scratch>
1305
| 1305 |
Input:
509+896
Target:
| Input:
509+896
Target:
<scratch>
[5,0,9] has 3 digits.
[8,9,6] has 3 digits.
[5,0,9] + [8,9,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[5,0] + [8,9] , A=[5] , C=1 , 0+9+1=10 , A->0 , C->1
[5] + [8] , A=[0,5] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,0,5] C=1 , END
</scratch>
1405
| 1405 |
Input:
489+712
Target:
| Input:
489+712
Target:
<scratch>
[4,8,9] has 3 digits.
[7,1,2] has 3 digits.
[4,8,9] + [7,1,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[4,8] + [7,1] , A=[1] , C=1 , 8+1+1=10 , A->0 , C->1
[4] + [7] , A=[0,1] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,0,1] C=1 , END
</scratch>
1201
| 1201 |
Input:
698+948
Target:
| Input:
698+948
Target:
<scratch>
[6,9,8] has 3 digits.
[9,4,8] has 3 digits.
[6,9,8] + [9,4,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[6,9] + [9,4] , A=[6] , C=1 , 9+4+1=14 , A->4 , C->1
[6] + [9] , A=[4,6] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,4,6] C=1 , END
</scratch>
1646
| 1646 |
Input:
838+769
Target:
| Input:
838+769
Target:
<scratch>
[8,3,8] has 3 digits.
[7,6,9] has 3 digits.
[8,3,8] + [7,6,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[8,3] + [7,6] , A=[7] , C=1 , 3+6+1=10 , A->0 , C->1
[8] + [7] , A=[0,7] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,0,7] C=1 , END
</scratch>
1607
| 1607 |
Input:
699+454
Target:
| Input:
699+454
Target:
<scratch>
[6,9,9] has 3 digits.
[4,5,4] has 3 digits.
[6,9,9] + [4,5,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[6,9] + [4,5] , A=[3] , C=1 , 9+5+1=15 , A->5 , C->1
[6] + [4] , A=[5,3] , C=1 , 6+4+1=11 , A->1 , C->1
[] + [] , A=[1,5,3] C=1 , END
</scratch>
1153
| 1153 |
Input:
359+891
Target:
| Input:
359+891
Target:
<scratch>
[3,5,9] has 3 digits.
[8,9,1] has 3 digits.
[3,5,9] + [8,9,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[3,5] + [8,9] , A=[0] , C=1 , 5+9+1=15 , A->5 , C->1
[3] + [8] , A=[5,0] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,5,0] C=1 , END
</scratch>
1250
| 1250 |
Input:
998+337
Target:
| Input:
998+337
Target:
<scratch>
[9,9,8] has 3 digits.
[3,3,7] has 3 digits.
[9,9,8] + [3,3,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[9,9] + [3,3] , A=[5] , C=1 , 9+3+1=13 , A->3 , C->1
[9] + [3] , A=[3,5] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,3,5] C=1 , END
</scratch>
1335
| 1335 |
Input:
928+888
Target:
| Input:
928+888
Target:
<scratch>
[9,2,8] has 3 digits.
[8,8,8] has 3 digits.
[9,2,8] + [8,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[9,2] + [8,8] , A=[6] , C=1 , 2+8+1=11 , A->1 , C->1
[9] + [8] , A=[1,6] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,1,6] C=1 , END
</scratch>
1816
| 1816 |
Input:
828+782
Target:
| Input:
828+782
Target:
<scratch>
[8,2,8] has 3 digits.
[7,8,2] has 3 digits.
[8,2,8] + [7,8,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[8,2] + [7,8] , A=[0] , C=1 , 2+8+1=11 , A->1 , C->1
[8] + [7] , A=[1,0] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,1,0] C=1 , END
</scratch>
1610
| 1610 |
Input:
857+173
Target:
| Input:
857+173
Target:
<scratch>
[8,5,7] has 3 digits.
[1,7,3] has 3 digits.
[8,5,7] + [1,7,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[8,5] + [1,7] , A=[0] , C=1 , 5+7+1=13 , A->3 , C->1
[8] + [1] , A=[3,0] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,3,0] C=1 , END
</scratch>
1030
| 1030 |
Input:
859+599
Target:
| Input:
859+599
Target:
<scratch>
[8,5,9] has 3 digits.
[5,9,9] has 3 digits.
[8,5,9] + [5,9,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[8,5] + [5,9] , A=[8] , C=1 , 5+9+1=15 , A->5 , C->1
[8] + [5] , A=[5,8] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,5,8] C=1 , END
</scratch>
1458
| 1458 |
Input:
936+365
Target:
| Input:
936+365
Target:
<scratch>
[9,3,6] has 3 digits.
[3,6,5] has 3 digits.
[9,3,6] + [3,6,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[9,3] + [3,6] , A=[1] , C=1 , 3+6+1=10 , A->0 , C->1
[9] + [3] , A=[0,1] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,0,1] C=1 , END
</scratch>
1301
| 1301 |
Input:
268+954
Target:
| Input:
268+954
Target:
<scratch>
[2,6,8] has 3 digits.
[9,5,4] has 3 digits.
[2,6,8] + [9,5,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[2,6] + [9,5] , A=[2] , C=1 , 6+5+1=12 , A->2 , C->1
[2] + [9] , A=[2,2] , C=1 , 2+9+1=12 , A->2 , C->1
[] + [] , A=[2,2,2] C=1 , END
</scratch>
1222
| 1222 |
Input:
758+885
Target:
| Input:
758+885
Target:
<scratch>
[7,5,8] has 3 digits.
[8,8,5] has 3 digits.
[7,5,8] + [8,8,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[7,5] + [8,8] , A=[3] , C=1 , 5+8+1=14 , A->4 , C->1
[7] + [8] , A=[4,3] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,4,3] C=1 , END
</scratch>
1643
| 1643 |
Input:
715+296
Target:
| Input:
715+296
Target:
<scratch>
[7,1,5] has 3 digits.
[2,9,6] has 3 digits.
[7,1,5] + [2,9,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[7,1] + [2,9] , A=[1] , C=1 , 1+9+1=11 , A->1 , C->1
[7] + [2] , A=[1,1] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,1,1] C=1 , END
</scratch>
1011
| 1011 |
Input:
496+606
Target:
| Input:
496+606
Target:
<scratch>
[4,9,6] has 3 digits.
[6,0,6] has 3 digits.
[4,9,6] + [6,0,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[4,9] + [6,0] , A=[2] , C=1 , 9+0+1=10 , A->0 , C->1
[4] + [6] , A=[0,2] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,0,2] C=1 , END
</scratch>
1102
| 1102 |
Input:
618+886
Target:
| Input:
618+886
Target:
<scratch>
[6,1,8] has 3 digits.
[8,8,6] has 3 digits.
[6,1,8] + [8,8,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[6,1] + [8,8] , A=[4] , C=1 , 1+8+1=10 , A->0 , C->1
[6] + [8] , A=[0,4] , C=1 , 6+8+1=15 , A->5 , C->1
[] + [] , A=[5,0,4] C=1 , END
</scratch>
1504
| 1504 |
Input:
668+639
Target:
| Input:
668+639
Target:
<scratch>
[6,6,8] has 3 digits.
[6,3,9] has 3 digits.
[6,6,8] + [6,3,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[6,6] + [6,3] , A=[7] , C=1 , 6+3+1=10 , A->0 , C->1
[6] + [6] , A=[0,7] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,0,7] C=1 , END
</scratch>
1307
| 1307 |
Input:
768+466
Target:
| Input:
768+466
Target:
<scratch>
[7,6,8] has 3 digits.
[4,6,6] has 3 digits.
[7,6,8] + [4,6,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[7,6] + [4,6] , A=[4] , C=1 , 6+6+1=13 , A->3 , C->1
[7] + [4] , A=[3,4] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,3,4] C=1 , END
</scratch>
1234
| 1234 |
Input:
286+929
Target:
| Input:
286+929
Target:
<scratch>
[2,8,6] has 3 digits.
[9,2,9] has 3 digits.
[2,8,6] + [9,2,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[2,8] + [9,2] , A=[5] , C=1 , 8+2+1=11 , A->1 , C->1
[2] + [9] , A=[1,5] , C=1 , 2+9+1=12 , A->2 , C->1
[] + [] , A=[2,1,5] C=1 , END
</scratch>
1215
| 1215 |
Input:
193+848
Target:
| Input:
193+848
Target:
<scratch>
[1,9,3] has 3 digits.
[8,4,8] has 3 digits.
[1,9,3] + [8,4,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[1,9] + [8,4] , A=[1] , C=1 , 9+4+1=14 , A->4 , C->1
[1] + [8] , A=[4,1] , C=1 , 1+8+1=10 , A->0 , C->1
[] + [] , A=[0,4,1] C=1 , END
</scratch>
1041
| 1041 |
Input:
493+969
Target:
| Input:
493+969
Target:
<scratch>
[4,9,3] has 3 digits.
[9,6,9] has 3 digits.
[4,9,3] + [9,6,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[4,9] + [9,6] , A=[2] , C=1 , 9+6+1=16 , A->6 , C->1
[4] + [9] , A=[6,2] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,6,2] C=1 , END
</scratch>
1462
| 1462 |
Input:
948+566
Target:
| Input:
948+566
Target:
<scratch>
[9,4,8] has 3 digits.
[5,6,6] has 3 digits.
[9,4,8] + [5,6,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[9,4] + [5,6] , A=[4] , C=1 , 4+6+1=11 , A->1 , C->1
[9] + [5] , A=[1,4] , C=1 , 9+5+1=15 , A->5 , C->1
[] + [] , A=[5,1,4] C=1 , END
</scratch>
1514
| 1514 |
Input:
496+624
Target:
| Input:
496+624
Target:
<scratch>
[4,9,6] has 3 digits.
[6,2,4] has 3 digits.
[4,9,6] + [6,2,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[4,9] + [6,2] , A=[0] , C=1 , 9+2+1=12 , A->2 , C->1
[4] + [6] , A=[2,0] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,2,0] C=1 , END
</scratch>
1120
| 1120 |
Input:
975+147
Target:
| Input:
975+147
Target:
<scratch>
[9,7,5] has 3 digits.
[1,4,7] has 3 digits.
[9,7,5] + [1,4,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[9,7] + [1,4] , A=[2] , C=1 , 7+4+1=12 , A->2 , C->1
[9] + [1] , A=[2,2] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,2,2] C=1 , END
</scratch>
1122
| 1122 |
Input:
866+698
Target:
| Input:
866+698
Target:
<scratch>
[8,6,6] has 3 digits.
[6,9,8] has 3 digits.
[8,6,6] + [6,9,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[8,6] + [6,9] , A=[4] , C=1 , 6+9+1=16 , A->6 , C->1
[8] + [6] , A=[6,4] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,6,4] C=1 , END
</scratch>
1564
| 1564 |
Input:
735+289
Target:
| Input:
735+289
Target:
<scratch>
[7,3,5] has 3 digits.
[2,8,9] has 3 digits.
[7,3,5] + [2,8,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[7,3] + [2,8] , A=[4] , C=1 , 3+8+1=12 , A->2 , C->1
[7] + [2] , A=[2,4] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,2,4] C=1 , END
</scratch>
1024
| 1024 |
Input:
889+228
Target:
| Input:
889+228
Target:
<scratch>
[8,8,9] has 3 digits.
[2,2,8] has 3 digits.
[8,8,9] + [2,2,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[8,8] + [2,2] , A=[7] , C=1 , 8+2+1=11 , A->1 , C->1
[8] + [2] , A=[1,7] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,1,7] C=1 , END
</scratch>
1117
| 1117 |
Input:
856+264
Target:
| Input:
856+264
Target:
<scratch>
[8,5,6] has 3 digits.
[2,6,4] has 3 digits.
[8,5,6] + [2,6,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[8,5] + [2,6] , A=[0] , C=1 , 5+6+1=12 , A->2 , C->1
[8] + [2] , A=[2,0] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,2,0] C=1 , END
</scratch>
1120
| 1120 |
Input:
516+895
Target:
| Input:
516+895
Target:
<scratch>
[5,1,6] has 3 digits.
[8,9,5] has 3 digits.
[5,1,6] + [8,9,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[5,1] + [8,9] , A=[1] , C=1 , 1+9+1=11 , A->1 , C->1
[5] + [8] , A=[1,1] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,1,1] C=1 , END
</scratch>
1411
| 1411 |
Input:
924+176
Target:
| Input:
924+176
Target:
<scratch>
[9,2,4] has 3 digits.
[1,7,6] has 3 digits.
[9,2,4] + [1,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[9,2] + [1,7] , A=[0] , C=1 , 2+7+1=10 , A->0 , C->1
[9] + [1] , A=[0,0] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,0,0] C=1 , END
</scratch>
1100
| 1100 |
Input:
453+747
Target:
| Input:
453+747
Target:
<scratch>
[4,5,3] has 3 digits.
[7,4,7] has 3 digits.
[4,5,3] + [7,4,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[4,5] + [7,4] , A=[0] , C=1 , 5+4+1=10 , A->0 , C->1
[4] + [7] , A=[0,0] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,0,0] C=1 , END
</scratch>
1200
| 1200 |
Input:
669+686
Target:
| Input:
669+686
Target:
<scratch>
[6,6,9] has 3 digits.
[6,8,6] has 3 digits.
[6,6,9] + [6,8,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[6,6] + [6,8] , A=[5] , C=1 , 6+8+1=15 , A->5 , C->1
[6] + [6] , A=[5,5] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,5,5] C=1 , END
</scratch>
1355
| 1355 |
Input:
176+939
Target:
| Input:
176+939
Target:
<scratch>
[1,7,6] has 3 digits.
[9,3,9] has 3 digits.
[1,7,6] + [9,3,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[1,7] + [9,3] , A=[5] , C=1 , 7+3+1=11 , A->1 , C->1
[1] + [9] , A=[1,5] , C=1 , 1+9+1=11 , A->1 , C->1
[] + [] , A=[1,1,5] C=1 , END
</scratch>
1115
| 1115 |
Input:
674+686
Target:
| Input:
674+686
Target:
<scratch>
[6,7,4] has 3 digits.
[6,8,6] has 3 digits.
[6,7,4] + [6,8,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[6,7] + [6,8] , A=[0] , C=1 , 7+8+1=16 , A->6 , C->1
[6] + [6] , A=[6,0] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,6,0] C=1 , END
</scratch>
1360
| 1360 |
Input:
957+569
Target:
| Input:
957+569
Target:
<scratch>
[9,5,7] has 3 digits.
[5,6,9] has 3 digits.
[9,5,7] + [5,6,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[9,5] + [5,6] , A=[6] , C=1 , 5+6+1=12 , A->2 , C->1
[9] + [5] , A=[2,6] , C=1 , 9+5+1=15 , A->5 , C->1
[] + [] , A=[5,2,6] C=1 , END
</scratch>
1526
| 1526 |
Input:
945+995
Target:
| Input:
945+995
Target:
<scratch>
[9,4,5] has 3 digits.
[9,9,5] has 3 digits.
[9,4,5] + [9,9,5] , A=[] , C=0 , 5+5+0=10 , A->0 , C->1
[9,4] + [9,9] , A=[0] , C=1 , 4+9+1=14 , A->4 , C->1
[9] + [9] , A=[4,0] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,4,0] C=1 , END
</scratch>
1940
| 1940 |
Input:
755+748
Target:
| Input:
755+748
Target:
<scratch>
[7,5,5] has 3 digits.
[7,4,8] has 3 digits.
[7,5,5] + [7,4,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[7,5] + [7,4] , A=[3] , C=1 , 5+4+1=10 , A->0 , C->1
[7] + [7] , A=[0,3] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,0,3] C=1 , END
</scratch>
1503
| 1503 |
Input:
869+864
Target:
| Input:
869+864
Target:
<scratch>
[8,6,9] has 3 digits.
[8,6,4] has 3 digits.
[8,6,9] + [8,6,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[8,6] + [8,6] , A=[3] , C=1 , 6+6+1=13 , A->3 , C->1
[8] + [8] , A=[3,3] , C=1 , 8+8+1=17 , A->7 , C->1
[] + [] , A=[7,3,3] C=1 , END
</scratch>
1733
| 1733 |
Input:
838+892
Target:
| Input:
838+892
Target:
<scratch>
[8,3,8] has 3 digits.
[8,9,2] has 3 digits.
[8,3,8] + [8,9,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[8,3] + [8,9] , A=[0] , C=1 , 3+9+1=13 , A->3 , C->1
[8] + [8] , A=[3,0] , C=1 , 8+8+1=17 , A->7 , C->1
[] + [] , A=[7,3,0] C=1 , END
</scratch>
1730
| 1730 |
Input:
533+477
Target:
| Input:
533+477
Target:
<scratch>
[5,3,3] has 3 digits.
[4,7,7] has 3 digits.
[5,3,3] + [4,7,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[5,3] + [4,7] , A=[0] , C=1 , 3+7+1=11 , A->1 , C->1
[5] + [4] , A=[1,0] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,1,0] C=1 , END
</scratch>
1010
| 1010 |
Input:
898+385
Target:
| Input:
898+385
Target:
<scratch>
[8,9,8] has 3 digits.
[3,8,5] has 3 digits.
[8,9,8] + [3,8,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[8,9] + [3,8] , A=[3] , C=1 , 9+8+1=18 , A->8 , C->1
[8] + [3] , A=[8,3] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,8,3] C=1 , END
</scratch>
1283
| 1283 |
Input:
472+549
Target:
| Input:
472+549
Target:
<scratch>
[4,7,2] has 3 digits.
[5,4,9] has 3 digits.
[4,7,2] + [5,4,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[4,7] + [5,4] , A=[1] , C=1 , 7+4+1=12 , A->2 , C->1
[4] + [5] , A=[2,1] , C=1 , 4+5+1=10 , A->0 , C->1
[] + [] , A=[0,2,1] C=1 , END
</scratch>
1021
| 1021 |
Input:
787+279
Target:
| Input:
787+279
Target:
<scratch>
[7,8,7] has 3 digits.
[2,7,9] has 3 digits.
[7,8,7] + [2,7,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[7,8] + [2,7] , A=[6] , C=1 , 8+7+1=16 , A->6 , C->1
[7] + [2] , A=[6,6] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,6,6] C=1 , END
</scratch>
1066
| 1066 |
Input:
996+354
Target:
| Input:
996+354
Target:
<scratch>
[9,9,6] has 3 digits.
[3,5,4] has 3 digits.
[9,9,6] + [3,5,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[9,9] + [3,5] , A=[0] , C=1 , 9+5+1=15 , A->5 , C->1
[9] + [3] , A=[5,0] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,5,0] C=1 , END
</scratch>
1350
| 1350 |
Input:
697+649
Target:
| Input:
697+649
Target:
<scratch>
[6,9,7] has 3 digits.
[6,4,9] has 3 digits.
[6,9,7] + [6,4,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[6,9] + [6,4] , A=[6] , C=1 , 9+4+1=14 , A->4 , C->1
[6] + [6] , A=[4,6] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,4,6] C=1 , END
</scratch>
1346
| 1346 |
Input:
768+754
Target:
| Input:
768+754
Target:
<scratch>
[7,6,8] has 3 digits.
[7,5,4] has 3 digits.
[7,6,8] + [7,5,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[7,6] + [7,5] , A=[2] , C=1 , 6+5+1=12 , A->2 , C->1
[7] + [7] , A=[2,2] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,2,2] C=1 , END
</scratch>
1522
| 1522 |
Input:
987+384
Target:
| Input:
987+384
Target:
<scratch>
[9,8,7] has 3 digits.
[3,8,4] has 3 digits.
[9,8,7] + [3,8,4] , A=[] , C=0 , 7+4+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:
666+347
Target:
| Input:
666+347
Target:
<scratch>
[6,6,6] has 3 digits.
[3,4,7] has 3 digits.
[6,6,6] + [3,4,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[6,6] + [3,4] , A=[3] , C=1 , 6+4+1=11 , A->1 , C->1
[6] + [3] , A=[1,3] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,1,3] C=1 , END
</scratch>
1013
| 1013 |
Input:
923+77
Target:
| Input:
923+77
Target:
<scratch>
[9,2,3] has 3 digits.
[7,7] has 2 digits.
[9,2,3] + [7,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[9,2] + [7] , A=[0] , C=1 , 2+7+1=10 , A->0 , C->1
[9] + [] , A=[0,0] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,0,0] C=1 , END
</scratch>
1000
| 1000 |
Input:
974+989
Target:
| Input:
974+989
Target:
<scratch>
[9,7,4] has 3 digits.
[9,8,9] has 3 digits.
[9,7,4] + [9,8,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[9,7] + [9,8] , A=[3] , C=1 , 7+8+1=16 , A->6 , C->1
[9] + [9] , A=[6,3] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,6,3] C=1 , END
</scratch>
1963
| 1963 |
Input:
859+399
Target:
| Input:
859+399
Target:
<scratch>
[8,5,9] has 3 digits.
[3,9,9] has 3 digits.
[8,5,9] + [3,9,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[8,5] + [3,9] , A=[8] , C=1 , 5+9+1=15 , A->5 , C->1
[8] + [3] , A=[5,8] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,5,8] C=1 , END
</scratch>
1258
| 1258 |
Input:
897+466
Target:
| Input:
897+466
Target:
<scratch>
[8,9,7] has 3 digits.
[4,6,6] has 3 digits.
[8,9,7] + [4,6,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[8,9] + [4,6] , A=[3] , C=1 , 9+6+1=16 , A->6 , C->1
[8] + [4] , A=[6,3] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,6,3] C=1 , END
</scratch>
1363
| 1363 |
Input:
997+409
Target:
| Input:
997+409
Target:
<scratch>
[9,9,7] has 3 digits.
[4,0,9] has 3 digits.
[9,9,7] + [4,0,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[9,9] + [4,0] , A=[6] , C=1 , 9+0+1=10 , A->0 , C->1
[9] + [4] , A=[0,6] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,0,6] C=1 , END
</scratch>
1406
| 1406 |
Input:
769+977
Target:
| Input:
769+977
Target:
<scratch>
[7,6,9] has 3 digits.
[9,7,7] has 3 digits.
[7,6,9] + [9,7,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[7,6] + [9,7] , A=[6] , C=1 , 6+7+1=14 , A->4 , C->1
[7] + [9] , A=[4,6] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,4,6] C=1 , END
</scratch>
1746
| 1746 |
Input:
86+929
Target:
| Input:
86+929
Target:
<scratch>
[8,6] has 2 digits.
[9,2,9] has 3 digits.
[8,6] + [9,2,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[8] + [9,2] , A=[5] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [9] , A=[1,5] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,1,5] C=1 , END
</scratch>
1015
| 1015 |
Input:
97+994
Target:
| Input:
97+994
Target:
<scratch>
[9,7] has 2 digits.
[9,9,4] has 3 digits.
[9,7] + [9,9,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[9] + [9,9] , A=[1] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [9] , A=[9,1] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,9,1] C=1 , END
</scratch>
1091
| 1091 |
Input:
919+897
Target:
| Input:
919+897
Target:
<scratch>
[9,1,9] has 3 digits.
[8,9,7] has 3 digits.
[9,1,9] + [8,9,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[9,1] + [8,9] , A=[6] , C=1 , 1+9+1=11 , A->1 , C->1
[9] + [8] , A=[1,6] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,1,6] C=1 , END
</scratch>
1816
| 1816 |
Input:
884+499
Target:
| Input:
884+499
Target:
<scratch>
[8,8,4] has 3 digits.
[4,9,9] has 3 digits.
[8,8,4] + [4,9,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[8,8] + [4,9] , A=[3] , C=1 , 8+9+1=18 , A->8 , C->1
[8] + [4] , A=[8,3] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,8,3] C=1 , END
</scratch>
1383
| 1383 |
Input:
908+796
Target:
| Input:
908+796
Target:
<scratch>
[9,0,8] has 3 digits.
[7,9,6] has 3 digits.
[9,0,8] + [7,9,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[9,0] + [7,9] , A=[4] , C=1 , 0+9+1=10 , A->0 , C->1
[9] + [7] , A=[0,4] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,0,4] C=1 , END
</scratch>
1704
| 1704 |
Input:
685+626
Target:
| Input:
685+626
Target:
<scratch>
[6,8,5] has 3 digits.
[6,2,6] has 3 digits.
[6,8,5] + [6,2,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[6,8] + [6,2] , A=[1] , C=1 , 8+2+1=11 , A->1 , C->1
[6] + [6] , A=[1,1] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,1,1] C=1 , END
</scratch>
1311
| 1311 |
Input:
379+641
Target:
| Input:
379+641
Target:
<scratch>
[3,7,9] has 3 digits.
[6,4,1] has 3 digits.
[3,7,9] + [6,4,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[3,7] + [6,4] , A=[0] , C=1 , 7+4+1=12 , A->2 , C->1
[3] + [6] , A=[2,0] , C=1 , 3+6+1=10 , A->0 , C->1
[] + [] , A=[0,2,0] C=1 , END
</scratch>
1020
| 1020 |
Input:
98+908
Target:
| Input:
98+908
Target:
<scratch>
[9,8] has 2 digits.
[9,0,8] has 3 digits.
[9,8] + [9,0,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[9] + [9,0] , A=[6] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [9] , A=[0,6] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,0,6] C=1 , END
</scratch>
1006
| 1006 |
Input:
487+967
Target:
| Input:
487+967
Target:
<scratch>
[4,8,7] has 3 digits.
[9,6,7] has 3 digits.
[4,8,7] + [9,6,7] , A=[] , C=0 , 7+7+0=14 , A->4 , C->1
[4,8] + [9,6] , A=[4] , C=1 , 8+6+1=15 , A->5 , C->1
[4] + [9] , A=[5,4] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,5,4] C=1 , END
</scratch>
1454
| 1454 |
Input:
842+888
Target:
| Input:
842+888
Target:
<scratch>
[8,4,2] has 3 digits.
[8,8,8] has 3 digits.
[8,4,2] + [8,8,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[8,4] + [8,8] , A=[0] , C=1 , 4+8+1=13 , A->3 , C->1
[8] + [8] , A=[3,0] , C=1 , 8+8+1=17 , A->7 , C->1
[] + [] , A=[7,3,0] C=1 , END
</scratch>
1730
| 1730 |
Input:
719+298
Target:
| Input:
719+298
Target:
<scratch>
[7,1,9] has 3 digits.
[2,9,8] has 3 digits.
[7,1,9] + [2,9,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[7,1] + [2,9] , A=[7] , C=1 , 1+9+1=11 , A->1 , C->1
[7] + [2] , A=[1,7] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,1,7] C=1 , END
</scratch>
1017
| 1017 |
Input:
598+403
Target:
| Input:
598+403
Target:
<scratch>
[5,9,8] has 3 digits.
[4,0,3] has 3 digits.
[5,9,8] + [4,0,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[5,9] + [4,0] , A=[1] , C=1 , 9+0+1=10 , A->0 , C->1
[5] + [4] , A=[0,1] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,0,1] C=1 , END
</scratch>
1001
| 1001 |
Input:
882+778
Target:
| Input:
882+778
Target:
<scratch>
[8,8,2] has 3 digits.
[7,7,8] has 3 digits.
[8,8,2] + [7,7,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[8,8] + [7,7] , A=[0] , C=1 , 8+7+1=16 , A->6 , C->1
[8] + [7] , A=[6,0] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,6,0] C=1 , END
</scratch>
1660
| 1660 |
Input:
771+779
Target:
| Input:
771+779
Target:
<scratch>
[7,7,1] has 3 digits.
[7,7,9] has 3 digits.
[7,7,1] + [7,7,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[7,7] + [7,7] , A=[0] , C=1 , 7+7+1=15 , A->5 , C->1
[7] + [7] , A=[5,0] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,5,0] C=1 , END
</scratch>
1550
| 1550 |
Input:
249+774
Target:
| Input:
249+774
Target:
<scratch>
[2,4,9] has 3 digits.
[7,7,4] has 3 digits.
[2,4,9] + [7,7,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[2,4] + [7,7] , A=[3] , C=1 , 4+7+1=12 , A->2 , C->1
[2] + [7] , A=[2,3] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,2,3] C=1 , END
</scratch>
1023
| 1023 |
Input:
978+325
Target:
| Input:
978+325
Target:
<scratch>
[9,7,8] has 3 digits.
[3,2,5] has 3 digits.
[9,7,8] + [3,2,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[9,7] + [3,2] , A=[3] , C=1 , 7+2+1=10 , A->0 , C->1
[9] + [3] , A=[0,3] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,0,3] C=1 , END
</scratch>
1303
| 1303 |
Input:
874+286
Target:
| Input:
874+286
Target:
<scratch>
[8,7,4] has 3 digits.
[2,8,6] has 3 digits.
[8,7,4] + [2,8,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[8,7] + [2,8] , A=[0] , C=1 , 7+8+1=16 , A->6 , C->1
[8] + [2] , A=[6,0] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,6,0] C=1 , END
</scratch>
1160
| 1160 |
Input:
601+399
Target:
| Input:
601+399
Target:
<scratch>
[6,0,1] has 3 digits.
[3,9,9] has 3 digits.
[6,0,1] + [3,9,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[6,0] + [3,9] , A=[0] , C=1 , 0+9+1=10 , A->0 , C->1
[6] + [3] , A=[0,0] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,0,0] C=1 , END
</scratch>
1000
| 1000 |
Input:
989+795
Target:
| Input:
989+795
Target:
<scratch>
[9,8,9] has 3 digits.
[7,9,5] has 3 digits.
[9,8,9] + [7,9,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[9,8] + [7,9] , A=[4] , C=1 , 8+9+1=18 , A->8 , C->1
[9] + [7] , A=[8,4] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,8,4] C=1 , END
</scratch>
1784
| 1784 |
Input:
691+799
Target:
| Input:
691+799
Target:
<scratch>
[6,9,1] has 3 digits.
[7,9,9] has 3 digits.
[6,9,1] + [7,9,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[6,9] + [7,9] , A=[0] , C=1 , 9+9+1=19 , A->9 , C->1
[6] + [7] , A=[9,0] , C=1 , 6+7+1=14 , A->4 , C->1
[] + [] , A=[4,9,0] C=1 , END
</scratch>
1490
| 1490 |
Input:
873+227
Target:
| Input:
873+227
Target:
<scratch>
[8,7,3] has 3 digits.
[2,2,7] has 3 digits.
[8,7,3] + [2,2,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[8,7] + [2,2] , A=[0] , C=1 , 7+2+1=10 , A->0 , C->1
[8] + [2] , A=[0,0] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,0,0] C=1 , END
</scratch>
1100
| 1100 |
Input:
628+977
Target:
| Input:
628+977
Target:
<scratch>
[6,2,8] has 3 digits.
[9,7,7] has 3 digits.
[6,2,8] + [9,7,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[6,2] + [9,7] , A=[5] , C=1 , 2+7+1=10 , A->0 , C->1
[6] + [9] , A=[0,5] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,0,5] C=1 , END
</scratch>
1605
| 1605 |
Input:
489+511
Target:
| Input:
489+511
Target:
<scratch>
[4,8,9] has 3 digits.
[5,1,1] has 3 digits.
[4,8,9] + [5,1,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[4,8] + [5,1] , A=[0] , C=1 , 8+1+1=10 , A->0 , C->1
[4] + [5] , A=[0,0] , C=1 , 4+5+1=10 , A->0 , C->1
[] + [] , A=[0,0,0] C=1 , END
</scratch>
1000
| 1000 |
Input:
929+73
Target:
| Input:
929+73
Target:
<scratch>
[9,2,9] has 3 digits.
[7,3] has 2 digits.
[9,2,9] + [7,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[9,2] + [7] , A=[2] , C=1 , 2+7+1=10 , A->0 , C->1
[9] + [] , A=[0,2] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,0,2] C=1 , END
</scratch>
1002
| 1002 |
Input:
548+652
Target:
| Input:
548+652
Target:
<scratch>
[5,4,8] has 3 digits.
[6,5,2] has 3 digits.
[5,4,8] + [6,5,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[5,4] + [6,5] , A=[0] , C=1 , 4+5+1=10 , A->0 , C->1
[5] + [6] , A=[0,0] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,0,0] C=1 , END
</scratch>
1200
| 1200 |
Input:
999+136
Target:
| Input:
999+136
Target:
<scratch>
[9,9,9] has 3 digits.
[1,3,6] has 3 digits.
[9,9,9] + [1,3,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[9,9] + [1,3] , A=[5] , C=1 , 9+3+1=13 , A->3 , C->1
[9] + [1] , A=[3,5] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,3,5] C=1 , END
</scratch>
1135
| 1135 |
Input:
932+198
Target:
| Input:
932+198
Target:
<scratch>
[9,3,2] has 3 digits.
[1,9,8] has 3 digits.
[9,3,2] + [1,9,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[9,3] + [1,9] , A=[0] , C=1 , 3+9+1=13 , A->3 , C->1
[9] + [1] , A=[3,0] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,3,0] C=1 , END
</scratch>
1130
| 1130 |
Input:
986+338
Target:
| Input:
986+338
Target:
<scratch>
[9,8,6] has 3 digits.
[3,3,8] has 3 digits.
[9,8,6] + [3,3,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[9,8] + [3,3] , A=[4] , C=1 , 8+3+1=12 , A->2 , C->1
[9] + [3] , A=[2,4] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,2,4] C=1 , END
</scratch>
1324
| 1324 |
Input:
572+999
Target:
| Input:
572+999
Target:
<scratch>
[5,7,2] has 3 digits.
[9,9,9] has 3 digits.
[5,7,2] + [9,9,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[5,7] + [9,9] , A=[1] , C=1 , 7+9+1=17 , A->7 , C->1
[5] + [9] , A=[7,1] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,7,1] C=1 , END
</scratch>
1571
| 1571 |
Input:
763+668
Target:
| Input:
763+668
Target:
<scratch>
[7,6,3] has 3 digits.
[6,6,8] has 3 digits.
[7,6,3] + [6,6,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[7,6] + [6,6] , A=[1] , C=1 , 6+6+1=13 , A->3 , C->1
[7] + [6] , A=[3,1] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,3,1] C=1 , END
</scratch>
1431
| 1431 |
Input:
687+824
Target:
| Input:
687+824
Target:
<scratch>
[6,8,7] has 3 digits.
[8,2,4] has 3 digits.
[6,8,7] + [8,2,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[6,8] + [8,2] , A=[1] , C=1 , 8+2+1=11 , A->1 , C->1
[6] + [8] , A=[1,1] , C=1 , 6+8+1=15 , A->5 , C->1
[] + [] , A=[5,1,1] C=1 , END
</scratch>
1511
| 1511 |
Input:
241+989
Target:
| Input:
241+989
Target:
<scratch>
[2,4,1] has 3 digits.
[9,8,9] has 3 digits.
[2,4,1] + [9,8,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[2,4] + [9,8] , A=[0] , C=1 , 4+8+1=13 , A->3 , C->1
[2] + [9] , A=[3,0] , C=1 , 2+9+1=12 , A->2 , C->1
[] + [] , A=[2,3,0] C=1 , END
</scratch>
1230
| 1230 |
Input:
822+879
Target:
| Input:
822+879
Target:
<scratch>
[8,2,2] has 3 digits.
[8,7,9] has 3 digits.
[8,2,2] + [8,7,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[8,2] + [8,7] , A=[1] , C=1 , 2+7+1=10 , A->0 , C->1
[8] + [8] , A=[0,1] , C=1 , 8+8+1=17 , A->7 , C->1
[] + [] , A=[7,0,1] C=1 , END
</scratch>
1701
| 1701 |
Input:
848+988
Target:
| Input:
848+988
Target:
<scratch>
[8,4,8] has 3 digits.
[9,8,8] has 3 digits.
[8,4,8] + [9,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[8,4] + [9,8] , A=[6] , C=1 , 4+8+1=13 , A->3 , C->1
[8] + [9] , A=[3,6] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,3,6] C=1 , END
</scratch>
1836
| 1836 |
Input:
837+784
Target:
| Input:
837+784
Target:
<scratch>
[8,3,7] has 3 digits.
[7,8,4] has 3 digits.
[8,3,7] + [7,8,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[8,3] + [7,8] , A=[1] , C=1 , 3+8+1=12 , A->2 , C->1
[8] + [7] , A=[2,1] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,2,1] C=1 , END
</scratch>
1621
| 1621 |
Input:
794+426
Target:
| Input:
794+426
Target:
<scratch>
[7,9,4] has 3 digits.
[4,2,6] has 3 digits.
[7,9,4] + [4,2,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[7,9] + [4,2] , A=[0] , C=1 , 9+2+1=12 , A->2 , C->1
[7] + [4] , A=[2,0] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,2,0] C=1 , END
</scratch>
1220
| 1220 |
Input:
846+675
Target:
| Input:
846+675
Target:
<scratch>
[8,4,6] has 3 digits.
[6,7,5] has 3 digits.
[8,4,6] + [6,7,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[8,4] + [6,7] , A=[1] , C=1 , 4+7+1=12 , A->2 , C->1
[8] + [6] , A=[2,1] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,2,1] C=1 , END
</scratch>
1521
| 1521 |
Subsets and Splits