input_test
stringlengths 19
23
| scratchpad
stringlengths 151
283
| result_final
stringlengths 1
4
|
---|---|---|
Input:
899+908
Target:
| Input:
899+908
Target:
<scratch>
[8,9,9] has 3 digits.
[9,0,8] has 3 digits.
[8,9,9] + [9,0,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[8,9] + [9,0] , A=[7] , C=1 , 9+0+1=10 , A->0 , C->1
[8] + [9] , A=[0,7] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,0,7] C=1 , END
</scratch>
1807
| 1807 |
Input:
984+157
Target:
| Input:
984+157
Target:
<scratch>
[9,8,4] has 3 digits.
[1,5,7] has 3 digits.
[9,8,4] + [1,5,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[9,8] + [1,5] , A=[1] , C=1 , 8+5+1=14 , A->4 , C->1
[9] + [1] , A=[4,1] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,4,1] C=1 , END
</scratch>
1141
| 1141 |
Input:
594+878
Target:
| Input:
594+878
Target:
<scratch>
[5,9,4] has 3 digits.
[8,7,8] has 3 digits.
[5,9,4] + [8,7,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[5,9] + [8,7] , A=[2] , C=1 , 9+7+1=17 , A->7 , C->1
[5] + [8] , A=[7,2] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,7,2] C=1 , END
</scratch>
1472
| 1472 |
Input:
955+547
Target:
| Input:
955+547
Target:
<scratch>
[9,5,5] has 3 digits.
[5,4,7] has 3 digits.
[9,5,5] + [5,4,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[9,5] + [5,4] , A=[2] , C=1 , 5+4+1=10 , A->0 , C->1
[9] + [5] , A=[0,2] , C=1 , 9+5+1=15 , A->5 , C->1
[] + [] , A=[5,0,2] C=1 , END
</scratch>
1502
| 1502 |
Input:
463+697
Target:
| Input:
463+697
Target:
<scratch>
[4,6,3] has 3 digits.
[6,9,7] has 3 digits.
[4,6,3] + [6,9,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[4,6] + [6,9] , A=[0] , C=1 , 6+9+1=16 , A->6 , C->1
[4] + [6] , A=[6,0] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,6,0] C=1 , END
</scratch>
1160
| 1160 |
Input:
959+779
Target:
| Input:
959+779
Target:
<scratch>
[9,5,9] has 3 digits.
[7,7,9] has 3 digits.
[9,5,9] + [7,7,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[9,5] + [7,7] , A=[8] , C=1 , 5+7+1=13 , A->3 , C->1
[9] + [7] , A=[3,8] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,3,8] C=1 , END
</scratch>
1738
| 1738 |
Input:
588+953
Target:
| Input:
588+953
Target:
<scratch>
[5,8,8] has 3 digits.
[9,5,3] has 3 digits.
[5,8,8] + [9,5,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[5,8] + [9,5] , A=[1] , C=1 , 8+5+1=14 , A->4 , C->1
[5] + [9] , A=[4,1] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,4,1] C=1 , END
</scratch>
1541
| 1541 |
Input:
694+606
Target:
| Input:
694+606
Target:
<scratch>
[6,9,4] has 3 digits.
[6,0,6] has 3 digits.
[6,9,4] + [6,0,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[6,9] + [6,0] , A=[0] , C=1 , 9+0+1=10 , A->0 , C->1
[6] + [6] , A=[0,0] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,0,0] C=1 , END
</scratch>
1300
| 1300 |
Input:
837+363
Target:
| Input:
837+363
Target:
<scratch>
[8,3,7] has 3 digits.
[3,6,3] has 3 digits.
[8,3,7] + [3,6,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[8,3] + [3,6] , A=[0] , C=1 , 3+6+1=10 , A->0 , C->1
[8] + [3] , A=[0,0] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,0,0] C=1 , END
</scratch>
1200
| 1200 |
Input:
896+117
Target:
| Input:
896+117
Target:
<scratch>
[8,9,6] has 3 digits.
[1,1,7] has 3 digits.
[8,9,6] + [1,1,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[8,9] + [1,1] , A=[3] , C=1 , 9+1+1=11 , A->1 , C->1
[8] + [1] , A=[1,3] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,1,3] C=1 , END
</scratch>
1013
| 1013 |
Input:
856+477
Target:
| Input:
856+477
Target:
<scratch>
[8,5,6] has 3 digits.
[4,7,7] has 3 digits.
[8,5,6] + [4,7,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[8,5] + [4,7] , A=[3] , C=1 , 5+7+1=13 , A->3 , C->1
[8] + [4] , A=[3,3] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,3,3] C=1 , END
</scratch>
1333
| 1333 |
Input:
782+519
Target:
| Input:
782+519
Target:
<scratch>
[7,8,2] has 3 digits.
[5,1,9] has 3 digits.
[7,8,2] + [5,1,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[7,8] + [5,1] , A=[1] , C=1 , 8+1+1=10 , A->0 , C->1
[7] + [5] , A=[0,1] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,0,1] C=1 , END
</scratch>
1301
| 1301 |
Input:
361+959
Target:
| Input:
361+959
Target:
<scratch>
[3,6,1] has 3 digits.
[9,5,9] has 3 digits.
[3,6,1] + [9,5,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[3,6] + [9,5] , A=[0] , C=1 , 6+5+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:
291+889
Target:
| Input:
291+889
Target:
<scratch>
[2,9,1] has 3 digits.
[8,8,9] has 3 digits.
[2,9,1] + [8,8,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[2,9] + [8,8] , A=[0] , C=1 , 9+8+1=18 , A->8 , C->1
[2] + [8] , A=[8,0] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,8,0] C=1 , END
</scratch>
1180
| 1180 |
Input:
949+399
Target:
| Input:
949+399
Target:
<scratch>
[9,4,9] has 3 digits.
[3,9,9] has 3 digits.
[9,4,9] + [3,9,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[9,4] + [3,9] , A=[8] , C=1 , 4+9+1=14 , A->4 , C->1
[9] + [3] , A=[4,8] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,4,8] C=1 , END
</scratch>
1348
| 1348 |
Input:
477+744
Target:
| Input:
477+744
Target:
<scratch>
[4,7,7] has 3 digits.
[7,4,4] has 3 digits.
[4,7,7] + [7,4,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[4,7] + [7,4] , A=[1] , C=1 , 7+4+1=12 , A->2 , C->1
[4] + [7] , A=[2,1] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,2,1] C=1 , END
</scratch>
1221
| 1221 |
Input:
986+336
Target:
| Input:
986+336
Target:
<scratch>
[9,8,6] has 3 digits.
[3,3,6] has 3 digits.
[9,8,6] + [3,3,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[9,8] + [3,3] , A=[2] , C=1 , 8+3+1=12 , A->2 , C->1
[9] + [3] , A=[2,2] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,2,2] C=1 , END
</scratch>
1322
| 1322 |
Input:
968+945
Target:
| Input:
968+945
Target:
<scratch>
[9,6,8] has 3 digits.
[9,4,5] has 3 digits.
[9,6,8] + [9,4,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[9,6] + [9,4] , A=[3] , C=1 , 6+4+1=11 , A->1 , C->1
[9] + [9] , A=[1,3] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,1,3] C=1 , END
</scratch>
1913
| 1913 |
Input:
776+959
Target:
| Input:
776+959
Target:
<scratch>
[7,7,6] has 3 digits.
[9,5,9] has 3 digits.
[7,7,6] + [9,5,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[7,7] + [9,5] , A=[5] , C=1 , 7+5+1=13 , A->3 , C->1
[7] + [9] , A=[3,5] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,3,5] C=1 , END
</scratch>
1735
| 1735 |
Input:
984+169
Target:
| Input:
984+169
Target:
<scratch>
[9,8,4] has 3 digits.
[1,6,9] has 3 digits.
[9,8,4] + [1,6,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[9,8] + [1,6] , A=[3] , C=1 , 8+6+1=15 , A->5 , C->1
[9] + [1] , A=[5,3] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,5,3] C=1 , END
</scratch>
1153
| 1153 |
Input:
597+716
Target:
| Input:
597+716
Target:
<scratch>
[5,9,7] has 3 digits.
[7,1,6] has 3 digits.
[5,9,7] + [7,1,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[5,9] + [7,1] , A=[3] , C=1 , 9+1+1=11 , A->1 , C->1
[5] + [7] , A=[1,3] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,1,3] C=1 , END
</scratch>
1313
| 1313 |
Input:
742+878
Target:
| Input:
742+878
Target:
<scratch>
[7,4,2] has 3 digits.
[8,7,8] has 3 digits.
[7,4,2] + [8,7,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[7,4] + [8,7] , A=[0] , C=1 , 4+7+1=12 , A->2 , C->1
[7] + [8] , A=[2,0] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,2,0] C=1 , END
</scratch>
1620
| 1620 |
Input:
989+496
Target:
| Input:
989+496
Target:
<scratch>
[9,8,9] has 3 digits.
[4,9,6] has 3 digits.
[9,8,9] + [4,9,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[9,8] + [4,9] , A=[5] , C=1 , 8+9+1=18 , A->8 , C->1
[9] + [4] , A=[8,5] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,8,5] C=1 , END
</scratch>
1485
| 1485 |
Input:
774+226
Target:
| Input:
774+226
Target:
<scratch>
[7,7,4] has 3 digits.
[2,2,6] has 3 digits.
[7,7,4] + [2,2,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[7,7] + [2,2] , A=[0] , C=1 , 7+2+1=10 , A->0 , C->1
[7] + [2] , A=[0,0] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,0,0] C=1 , END
</scratch>
1000
| 1000 |
Input:
746+658
Target:
| Input:
746+658
Target:
<scratch>
[7,4,6] has 3 digits.
[6,5,8] has 3 digits.
[7,4,6] + [6,5,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[7,4] + [6,5] , A=[4] , C=1 , 4+5+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:
648+596
Target:
| Input:
648+596
Target:
<scratch>
[6,4,8] has 3 digits.
[5,9,6] has 3 digits.
[6,4,8] + [5,9,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[6,4] + [5,9] , A=[4] , C=1 , 4+9+1=14 , A->4 , C->1
[6] + [5] , A=[4,4] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,4,4] C=1 , END
</scratch>
1244
| 1244 |
Input:
458+988
Target:
| Input:
458+988
Target:
<scratch>
[4,5,8] has 3 digits.
[9,8,8] has 3 digits.
[4,5,8] + [9,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[4,5] + [9,8] , A=[6] , C=1 , 5+8+1=14 , A->4 , C->1
[4] + [9] , A=[4,6] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,4,6] C=1 , END
</scratch>
1446
| 1446 |
Input:
482+939
Target:
| Input:
482+939
Target:
<scratch>
[4,8,2] has 3 digits.
[9,3,9] has 3 digits.
[4,8,2] + [9,3,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[4,8] + [9,3] , A=[1] , C=1 , 8+3+1=12 , A->2 , C->1
[4] + [9] , A=[2,1] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,2,1] C=1 , END
</scratch>
1421
| 1421 |
Input:
621+589
Target:
| Input:
621+589
Target:
<scratch>
[6,2,1] has 3 digits.
[5,8,9] has 3 digits.
[6,2,1] + [5,8,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[6,2] + [5,8] , A=[0] , C=1 , 2+8+1=11 , A->1 , C->1
[6] + [5] , A=[1,0] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,1,0] C=1 , END
</scratch>
1210
| 1210 |
Input:
768+862
Target:
| Input:
768+862
Target:
<scratch>
[7,6,8] has 3 digits.
[8,6,2] has 3 digits.
[7,6,8] + [8,6,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[7,6] + [8,6] , A=[0] , C=1 , 6+6+1=13 , A->3 , C->1
[7] + [8] , A=[3,0] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,3,0] C=1 , END
</scratch>
1630
| 1630 |
Input:
579+747
Target:
| Input:
579+747
Target:
<scratch>
[5,7,9] has 3 digits.
[7,4,7] has 3 digits.
[5,7,9] + [7,4,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[5,7] + [7,4] , A=[6] , C=1 , 7+4+1=12 , A->2 , C->1
[5] + [7] , A=[2,6] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,2,6] C=1 , END
</scratch>
1326
| 1326 |
Input:
268+833
Target:
| Input:
268+833
Target:
<scratch>
[2,6,8] has 3 digits.
[8,3,3] has 3 digits.
[2,6,8] + [8,3,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[2,6] + [8,3] , A=[1] , C=1 , 6+3+1=10 , A->0 , C->1
[2] + [8] , A=[0,1] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,0,1] C=1 , END
</scratch>
1101
| 1101 |
Input:
898+986
Target:
| Input:
898+986
Target:
<scratch>
[8,9,8] has 3 digits.
[9,8,6] has 3 digits.
[8,9,8] + [9,8,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[8,9] + [9,8] , A=[4] , C=1 , 9+8+1=18 , A->8 , C->1
[8] + [9] , A=[8,4] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,8,4] C=1 , END
</scratch>
1884
| 1884 |
Input:
743+878
Target:
| Input:
743+878
Target:
<scratch>
[7,4,3] has 3 digits.
[8,7,8] has 3 digits.
[7,4,3] + [8,7,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[7,4] + [8,7] , A=[1] , C=1 , 4+7+1=12 , A->2 , C->1
[7] + [8] , A=[2,1] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,2,1] C=1 , END
</scratch>
1621
| 1621 |
Input:
799+414
Target:
| Input:
799+414
Target:
<scratch>
[7,9,9] has 3 digits.
[4,1,4] has 3 digits.
[7,9,9] + [4,1,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[7,9] + [4,1] , A=[3] , C=1 , 9+1+1=11 , A->1 , C->1
[7] + [4] , A=[1,3] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,1,3] C=1 , END
</scratch>
1213
| 1213 |
Input:
911+689
Target:
| Input:
911+689
Target:
<scratch>
[9,1,1] has 3 digits.
[6,8,9] has 3 digits.
[9,1,1] + [6,8,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[9,1] + [6,8] , A=[0] , C=1 , 1+8+1=10 , A->0 , C->1
[9] + [6] , A=[0,0] , C=1 , 9+6+1=16 , A->6 , C->1
[] + [] , A=[6,0,0] C=1 , END
</scratch>
1600
| 1600 |
Input:
849+752
Target:
| Input:
849+752
Target:
<scratch>
[8,4,9] has 3 digits.
[7,5,2] has 3 digits.
[8,4,9] + [7,5,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[8,4] + [7,5] , A=[1] , C=1 , 4+5+1=10 , A->0 , C->1
[8] + [7] , A=[0,1] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,0,1] C=1 , END
</scratch>
1601
| 1601 |
Input:
798+624
Target:
| Input:
798+624
Target:
<scratch>
[7,9,8] has 3 digits.
[6,2,4] has 3 digits.
[7,9,8] + [6,2,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[7,9] + [6,2] , A=[2] , C=1 , 9+2+1=12 , A->2 , C->1
[7] + [6] , A=[2,2] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,2,2] C=1 , END
</scratch>
1422
| 1422 |
Input:
961+639
Target:
| Input:
961+639
Target:
<scratch>
[9,6,1] has 3 digits.
[6,3,9] has 3 digits.
[9,6,1] + [6,3,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[9,6] + [6,3] , A=[0] , C=1 , 6+3+1=10 , A->0 , C->1
[9] + [6] , A=[0,0] , C=1 , 9+6+1=16 , A->6 , C->1
[] + [] , A=[6,0,0] C=1 , END
</scratch>
1600
| 1600 |
Input:
549+799
Target:
| Input:
549+799
Target:
<scratch>
[5,4,9] has 3 digits.
[7,9,9] has 3 digits.
[5,4,9] + [7,9,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[5,4] + [7,9] , A=[8] , C=1 , 4+9+1=14 , A->4 , C->1
[5] + [7] , A=[4,8] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,4,8] C=1 , END
</scratch>
1348
| 1348 |
Input:
597+549
Target:
| Input:
597+549
Target:
<scratch>
[5,9,7] has 3 digits.
[5,4,9] has 3 digits.
[5,9,7] + [5,4,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[5,9] + [5,4] , A=[6] , C=1 , 9+4+1=14 , A->4 , C->1
[5] + [5] , A=[4,6] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,4,6] C=1 , END
</scratch>
1146
| 1146 |
Input:
866+278
Target:
| Input:
866+278
Target:
<scratch>
[8,6,6] has 3 digits.
[2,7,8] has 3 digits.
[8,6,6] + [2,7,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[8,6] + [2,7] , A=[4] , C=1 , 6+7+1=14 , A->4 , C->1
[8] + [2] , A=[4,4] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,4,4] C=1 , END
</scratch>
1144
| 1144 |
Input:
983+918
Target:
| Input:
983+918
Target:
<scratch>
[9,8,3] has 3 digits.
[9,1,8] has 3 digits.
[9,8,3] + [9,1,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[9,8] + [9,1] , A=[1] , C=1 , 8+1+1=10 , A->0 , C->1
[9] + [9] , A=[0,1] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,0,1] C=1 , END
</scratch>
1901
| 1901 |
Input:
378+959
Target:
| Input:
378+959
Target:
<scratch>
[3,7,8] has 3 digits.
[9,5,9] has 3 digits.
[3,7,8] + [9,5,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[3,7] + [9,5] , A=[7] , C=1 , 7+5+1=13 , A->3 , C->1
[3] + [9] , A=[3,7] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,3,7] C=1 , END
</scratch>
1337
| 1337 |
Input:
678+389
Target:
| Input:
678+389
Target:
<scratch>
[6,7,8] has 3 digits.
[3,8,9] has 3 digits.
[6,7,8] + [3,8,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[6,7] + [3,8] , A=[7] , C=1 , 7+8+1=16 , A->6 , C->1
[6] + [3] , A=[6,7] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,6,7] C=1 , END
</scratch>
1067
| 1067 |
Input:
985+888
Target:
| Input:
985+888
Target:
<scratch>
[9,8,5] has 3 digits.
[8,8,8] has 3 digits.
[9,8,5] + [8,8,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[9,8] + [8,8] , A=[3] , C=1 , 8+8+1=17 , A->7 , C->1
[9] + [8] , A=[7,3] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,7,3] C=1 , END
</scratch>
1873
| 1873 |
Input:
558+754
Target:
| Input:
558+754
Target:
<scratch>
[5,5,8] has 3 digits.
[7,5,4] has 3 digits.
[5,5,8] + [7,5,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[5,5] + [7,5] , A=[2] , C=1 , 5+5+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:
378+642
Target:
| Input:
378+642
Target:
<scratch>
[3,7,8] has 3 digits.
[6,4,2] has 3 digits.
[3,7,8] + [6,4,2] , A=[] , C=0 , 8+2+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:
767+843
Target:
| Input:
767+843
Target:
<scratch>
[7,6,7] has 3 digits.
[8,4,3] has 3 digits.
[7,6,7] + [8,4,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[7,6] + [8,4] , A=[0] , C=1 , 6+4+1=11 , A->1 , C->1
[7] + [8] , A=[1,0] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,1,0] C=1 , END
</scratch>
1610
| 1610 |
Input:
596+656
Target:
| Input:
596+656
Target:
<scratch>
[5,9,6] has 3 digits.
[6,5,6] has 3 digits.
[5,9,6] + [6,5,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[5,9] + [6,5] , A=[2] , C=1 , 9+5+1=15 , A->5 , C->1
[5] + [6] , A=[5,2] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,5,2] C=1 , END
</scratch>
1252
| 1252 |
Input:
644+558
Target:
| Input:
644+558
Target:
<scratch>
[6,4,4] has 3 digits.
[5,5,8] has 3 digits.
[6,4,4] + [5,5,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[6,4] + [5,5] , A=[2] , C=1 , 4+5+1=10 , A->0 , C->1
[6] + [5] , A=[0,2] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,0,2] C=1 , END
</scratch>
1202
| 1202 |
Input:
686+346
Target:
| Input:
686+346
Target:
<scratch>
[6,8,6] has 3 digits.
[3,4,6] has 3 digits.
[6,8,6] + [3,4,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[6,8] + [3,4] , A=[2] , C=1 , 8+4+1=13 , A->3 , C->1
[6] + [3] , A=[3,2] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,3,2] C=1 , END
</scratch>
1032
| 1032 |
Input:
472+779
Target:
| Input:
472+779
Target:
<scratch>
[4,7,2] has 3 digits.
[7,7,9] has 3 digits.
[4,7,2] + [7,7,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[4,7] + [7,7] , A=[1] , C=1 , 7+7+1=15 , A->5 , C->1
[4] + [7] , A=[5,1] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,5,1] C=1 , END
</scratch>
1251
| 1251 |
Input:
787+323
Target:
| Input:
787+323
Target:
<scratch>
[7,8,7] has 3 digits.
[3,2,3] has 3 digits.
[7,8,7] + [3,2,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[7,8] + [3,2] , A=[0] , C=1 , 8+2+1=11 , A->1 , C->1
[7] + [3] , A=[1,0] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,1,0] C=1 , END
</scratch>
1110
| 1110 |
Input:
389+644
Target:
| Input:
389+644
Target:
<scratch>
[3,8,9] has 3 digits.
[6,4,4] has 3 digits.
[3,8,9] + [6,4,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[3,8] + [6,4] , A=[3] , C=1 , 8+4+1=13 , A->3 , C->1
[3] + [6] , A=[3,3] , C=1 , 3+6+1=10 , A->0 , C->1
[] + [] , A=[0,3,3] C=1 , END
</scratch>
1033
| 1033 |
Input:
897+797
Target:
| Input:
897+797
Target:
<scratch>
[8,9,7] has 3 digits.
[7,9,7] has 3 digits.
[8,9,7] + [7,9,7] , A=[] , C=0 , 7+7+0=14 , A->4 , C->1
[8,9] + [7,9] , A=[4] , C=1 , 9+9+1=19 , A->9 , C->1
[8] + [7] , A=[9,4] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,9,4] C=1 , END
</scratch>
1694
| 1694 |
Input:
152+948
Target:
| Input:
152+948
Target:
<scratch>
[1,5,2] has 3 digits.
[9,4,8] has 3 digits.
[1,5,2] + [9,4,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[1,5] + [9,4] , A=[0] , C=1 , 5+4+1=10 , A->0 , C->1
[1] + [9] , A=[0,0] , C=1 , 1+9+1=11 , A->1 , C->1
[] + [] , A=[1,0,0] C=1 , END
</scratch>
1100
| 1100 |
Input:
948+375
Target:
| Input:
948+375
Target:
<scratch>
[9,4,8] has 3 digits.
[3,7,5] has 3 digits.
[9,4,8] + [3,7,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[9,4] + [3,7] , A=[3] , C=1 , 4+7+1=12 , A->2 , C->1
[9] + [3] , A=[2,3] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [] , A=[3,2,3] C=1 , END
</scratch>
1323
| 1323 |
Input:
469+674
Target:
| Input:
469+674
Target:
<scratch>
[4,6,9] has 3 digits.
[6,7,4] has 3 digits.
[4,6,9] + [6,7,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[4,6] + [6,7] , A=[3] , C=1 , 6+7+1=14 , A->4 , C->1
[4] + [6] , A=[4,3] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,4,3] C=1 , END
</scratch>
1143
| 1143 |
Input:
689+895
Target:
| Input:
689+895
Target:
<scratch>
[6,8,9] has 3 digits.
[8,9,5] has 3 digits.
[6,8,9] + [8,9,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[6,8] + [8,9] , A=[4] , C=1 , 8+9+1=18 , A->8 , C->1
[6] + [8] , A=[8,4] , C=1 , 6+8+1=15 , A->5 , C->1
[] + [] , A=[5,8,4] C=1 , END
</scratch>
1584
| 1584 |
Input:
399+991
Target:
| Input:
399+991
Target:
<scratch>
[3,9,9] has 3 digits.
[9,9,1] has 3 digits.
[3,9,9] + [9,9,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[3,9] + [9,9] , A=[0] , C=1 , 9+9+1=19 , A->9 , C->1
[3] + [9] , A=[9,0] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,9,0] C=1 , END
</scratch>
1390
| 1390 |
Input:
468+695
Target:
| Input:
468+695
Target:
<scratch>
[4,6,8] has 3 digits.
[6,9,5] has 3 digits.
[4,6,8] + [6,9,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[4,6] + [6,9] , A=[3] , C=1 , 6+9+1=16 , A->6 , C->1
[4] + [6] , A=[6,3] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,6,3] C=1 , END
</scratch>
1163
| 1163 |
Input:
391+709
Target:
| Input:
391+709
Target:
<scratch>
[3,9,1] has 3 digits.
[7,0,9] has 3 digits.
[3,9,1] + [7,0,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[3,9] + [7,0] , A=[0] , C=1 , 9+0+1=10 , A->0 , C->1
[3] + [7] , A=[0,0] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,0,0] C=1 , END
</scratch>
1100
| 1100 |
Input:
997+183
Target:
| Input:
997+183
Target:
<scratch>
[9,9,7] has 3 digits.
[1,8,3] has 3 digits.
[9,9,7] + [1,8,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[9,9] + [1,8] , A=[0] , C=1 , 9+8+1=18 , A->8 , C->1
[9] + [1] , A=[8,0] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,8,0] C=1 , END
</scratch>
1180
| 1180 |
Input:
998+57
Target:
| Input:
998+57
Target:
<scratch>
[9,9,8] has 3 digits.
[5,7] has 2 digits.
[9,9,8] + [5,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[9,9] + [5] , A=[5] , C=1 , 9+5+1=15 , A->5 , C->1
[9] + [] , A=[5,5] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,5,5] C=1 , END
</scratch>
1055
| 1055 |
Input:
566+848
Target:
| Input:
566+848
Target:
<scratch>
[5,6,6] has 3 digits.
[8,4,8] has 3 digits.
[5,6,6] + [8,4,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[5,6] + [8,4] , A=[4] , C=1 , 6+4+1=11 , A->1 , C->1
[5] + [8] , A=[1,4] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,1,4] C=1 , END
</scratch>
1414
| 1414 |
Input:
928+889
Target:
| Input:
928+889
Target:
<scratch>
[9,2,8] has 3 digits.
[8,8,9] has 3 digits.
[9,2,8] + [8,8,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[9,2] + [8,8] , A=[7] , C=1 , 2+8+1=11 , A->1 , C->1
[9] + [8] , A=[1,7] , C=1 , 9+8+1=18 , A->8 , C->1
[] + [] , A=[8,1,7] C=1 , END
</scratch>
1817
| 1817 |
Input:
767+678
Target:
| Input:
767+678
Target:
<scratch>
[7,6,7] has 3 digits.
[6,7,8] has 3 digits.
[7,6,7] + [6,7,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[7,6] + [6,7] , A=[5] , C=1 , 6+7+1=14 , A->4 , C->1
[7] + [6] , A=[4,5] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,4,5] C=1 , END
</scratch>
1445
| 1445 |
Input:
668+538
Target:
| Input:
668+538
Target:
<scratch>
[6,6,8] has 3 digits.
[5,3,8] has 3 digits.
[6,6,8] + [5,3,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[6,6] + [5,3] , A=[6] , C=1 , 6+3+1=10 , A->0 , C->1
[6] + [5] , A=[0,6] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,0,6] C=1 , END
</scratch>
1206
| 1206 |
Input:
533+577
Target:
| Input:
533+577
Target:
<scratch>
[5,3,3] has 3 digits.
[5,7,7] has 3 digits.
[5,3,3] + [5,7,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[5,3] + [5,7] , A=[0] , C=1 , 3+7+1=11 , A->1 , C->1
[5] + [5] , A=[1,0] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,1,0] C=1 , END
</scratch>
1110
| 1110 |
Input:
596+874
Target:
| Input:
596+874
Target:
<scratch>
[5,9,6] has 3 digits.
[8,7,4] has 3 digits.
[5,9,6] + [8,7,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[5,9] + [8,7] , A=[0] , C=1 , 9+7+1=17 , A->7 , C->1
[5] + [8] , A=[7,0] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,7,0] C=1 , END
</scratch>
1470
| 1470 |
Input:
363+937
Target:
| Input:
363+937
Target:
<scratch>
[3,6,3] has 3 digits.
[9,3,7] has 3 digits.
[3,6,3] + [9,3,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[3,6] + [9,3] , A=[0] , C=1 , 6+3+1=10 , A->0 , C->1
[3] + [9] , A=[0,0] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,0,0] C=1 , END
</scratch>
1300
| 1300 |
Input:
975+376
Target:
| Input:
975+376
Target:
<scratch>
[9,7,5] has 3 digits.
[3,7,6] has 3 digits.
[9,7,5] + [3,7,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[9,7] + [3,7] , A=[1] , C=1 , 7+7+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:
745+465
Target:
| Input:
745+465
Target:
<scratch>
[7,4,5] has 3 digits.
[4,6,5] has 3 digits.
[7,4,5] + [4,6,5] , A=[] , C=0 , 5+5+0=10 , A->0 , C->1
[7,4] + [4,6] , A=[0] , C=1 , 4+6+1=11 , A->1 , C->1
[7] + [4] , A=[1,0] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,1,0] C=1 , END
</scratch>
1210
| 1210 |
Input:
837+496
Target:
| Input:
837+496
Target:
<scratch>
[8,3,7] has 3 digits.
[4,9,6] has 3 digits.
[8,3,7] + [4,9,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[8,3] + [4,9] , A=[3] , C=1 , 3+9+1=13 , A->3 , C->1
[8] + [4] , A=[3,3] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,3,3] C=1 , END
</scratch>
1333
| 1333 |
Input:
988+228
Target:
| Input:
988+228
Target:
<scratch>
[9,8,8] has 3 digits.
[2,2,8] has 3 digits.
[9,8,8] + [2,2,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[9,8] + [2,2] , A=[6] , C=1 , 8+2+1=11 , A->1 , C->1
[9] + [2] , A=[1,6] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,1,6] C=1 , END
</scratch>
1216
| 1216 |
Input:
939+773
Target:
| Input:
939+773
Target:
<scratch>
[9,3,9] has 3 digits.
[7,7,3] has 3 digits.
[9,3,9] + [7,7,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[9,3] + [7,7] , A=[2] , C=1 , 3+7+1=11 , A->1 , C->1
[9] + [7] , A=[1,2] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,1,2] C=1 , END
</scratch>
1712
| 1712 |
Input:
868+175
Target:
| Input:
868+175
Target:
<scratch>
[8,6,8] has 3 digits.
[1,7,5] has 3 digits.
[8,6,8] + [1,7,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[8,6] + [1,7] , A=[3] , C=1 , 6+7+1=14 , A->4 , C->1
[8] + [1] , A=[4,3] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,4,3] C=1 , END
</scratch>
1043
| 1043 |
Input:
99+932
Target:
| Input:
99+932
Target:
<scratch>
[9,9] has 2 digits.
[9,3,2] has 3 digits.
[9,9] + [9,3,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[9] + [9,3] , A=[1] , C=1 , 9+3+1=13 , A->3 , C->1
[] + [9] , A=[3,1] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,3,1] C=1 , END
</scratch>
1031
| 1031 |
Input:
328+994
Target:
| Input:
328+994
Target:
<scratch>
[3,2,8] has 3 digits.
[9,9,4] has 3 digits.
[3,2,8] + [9,9,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[3,2] + [9,9] , A=[2] , C=1 , 2+9+1=12 , A->2 , C->1
[3] + [9] , A=[2,2] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,2,2] C=1 , END
</scratch>
1322
| 1322 |
Input:
878+153
Target:
| Input:
878+153
Target:
<scratch>
[8,7,8] has 3 digits.
[1,5,3] has 3 digits.
[8,7,8] + [1,5,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[8,7] + [1,5] , A=[1] , C=1 , 7+5+1=13 , A->3 , C->1
[8] + [1] , A=[3,1] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,3,1] C=1 , END
</scratch>
1031
| 1031 |
Input:
979+298
Target:
| Input:
979+298
Target:
<scratch>
[9,7,9] has 3 digits.
[2,9,8] has 3 digits.
[9,7,9] + [2,9,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[9,7] + [2,9] , A=[7] , C=1 , 7+9+1=17 , A->7 , C->1
[9] + [2] , A=[7,7] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,7,7] C=1 , END
</scratch>
1277
| 1277 |
Input:
677+639
Target:
| Input:
677+639
Target:
<scratch>
[6,7,7] has 3 digits.
[6,3,9] has 3 digits.
[6,7,7] + [6,3,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[6,7] + [6,3] , A=[6] , C=1 , 7+3+1=11 , A->1 , C->1
[6] + [6] , A=[1,6] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,1,6] C=1 , END
</scratch>
1316
| 1316 |
Input:
659+573
Target:
| Input:
659+573
Target:
<scratch>
[6,5,9] has 3 digits.
[5,7,3] has 3 digits.
[6,5,9] + [5,7,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[6,5] + [5,7] , A=[2] , C=1 , 5+7+1=13 , A->3 , C->1
[6] + [5] , A=[3,2] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,3,2] C=1 , END
</scratch>
1232
| 1232 |
Input:
699+482
Target:
| Input:
699+482
Target:
<scratch>
[6,9,9] has 3 digits.
[4,8,2] has 3 digits.
[6,9,9] + [4,8,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[6,9] + [4,8] , A=[1] , C=1 , 9+8+1=18 , A->8 , C->1
[6] + [4] , A=[8,1] , C=1 , 6+4+1=11 , A->1 , C->1
[] + [] , A=[1,8,1] C=1 , END
</scratch>
1181
| 1181 |
Input:
929+199
Target:
| Input:
929+199
Target:
<scratch>
[9,2,9] has 3 digits.
[1,9,9] has 3 digits.
[9,2,9] + [1,9,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[9,2] + [1,9] , A=[8] , C=1 , 2+9+1=12 , A->2 , C->1
[9] + [1] , A=[2,8] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,2,8] C=1 , END
</scratch>
1128
| 1128 |
Input:
499+635
Target:
| Input:
499+635
Target:
<scratch>
[4,9,9] has 3 digits.
[6,3,5] has 3 digits.
[4,9,9] + [6,3,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[4,9] + [6,3] , A=[4] , C=1 , 9+3+1=13 , A->3 , C->1
[4] + [6] , A=[3,4] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,3,4] C=1 , END
</scratch>
1134
| 1134 |
Input:
743+269
Target:
| Input:
743+269
Target:
<scratch>
[7,4,3] has 3 digits.
[2,6,9] has 3 digits.
[7,4,3] + [2,6,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[7,4] + [2,6] , A=[2] , C=1 , 4+6+1=11 , A->1 , C->1
[7] + [2] , A=[1,2] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,1,2] C=1 , END
</scratch>
1012
| 1012 |
Input:
759+672
Target:
| Input:
759+672
Target:
<scratch>
[7,5,9] has 3 digits.
[6,7,2] has 3 digits.
[7,5,9] + [6,7,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[7,5] + [6,7] , A=[1] , C=1 , 5+7+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:
858+442
Target:
| Input:
858+442
Target:
<scratch>
[8,5,8] has 3 digits.
[4,4,2] has 3 digits.
[8,5,8] + [4,4,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[8,5] + [4,4] , A=[0] , C=1 , 5+4+1=10 , A->0 , C->1
[8] + [4] , A=[0,0] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,0,0] C=1 , END
</scratch>
1300
| 1300 |
Input:
379+857
Target:
| Input:
379+857
Target:
<scratch>
[3,7,9] has 3 digits.
[8,5,7] has 3 digits.
[3,7,9] + [8,5,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[3,7] + [8,5] , A=[6] , C=1 , 7+5+1=13 , A->3 , C->1
[3] + [8] , A=[3,6] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,3,6] C=1 , END
</scratch>
1236
| 1236 |
Input:
724+387
Target:
| Input:
724+387
Target:
<scratch>
[7,2,4] has 3 digits.
[3,8,7] has 3 digits.
[7,2,4] + [3,8,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[7,2] + [3,8] , A=[1] , C=1 , 2+8+1=11 , A->1 , C->1
[7] + [3] , A=[1,1] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,1,1] C=1 , END
</scratch>
1111
| 1111 |
Input:
777+536
Target:
| Input:
777+536
Target:
<scratch>
[7,7,7] has 3 digits.
[5,3,6] has 3 digits.
[7,7,7] + [5,3,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[7,7] + [5,3] , A=[3] , C=1 , 7+3+1=11 , A->1 , C->1
[7] + [5] , A=[1,3] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,1,3] C=1 , END
</scratch>
1313
| 1313 |
Input:
444+669
Target:
| Input:
444+669
Target:
<scratch>
[4,4,4] has 3 digits.
[6,6,9] has 3 digits.
[4,4,4] + [6,6,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[4,4] + [6,6] , A=[3] , C=1 , 4+6+1=11 , A->1 , C->1
[4] + [6] , A=[1,3] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,1,3] C=1 , END
</scratch>
1113
| 1113 |
Input:
379+761
Target:
| Input:
379+761
Target:
<scratch>
[3,7,9] has 3 digits.
[7,6,1] has 3 digits.
[3,7,9] + [7,6,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[3,7] + [7,6] , A=[0] , C=1 , 7+6+1=14 , A->4 , C->1
[3] + [7] , A=[4,0] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,4,0] C=1 , END
</scratch>
1140
| 1140 |
Input:
745+599
Target:
| Input:
745+599
Target:
<scratch>
[7,4,5] has 3 digits.
[5,9,9] has 3 digits.
[7,4,5] + [5,9,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[7,4] + [5,9] , A=[4] , C=1 , 4+9+1=14 , A->4 , C->1
[7] + [5] , A=[4,4] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,4,4] C=1 , END
</scratch>
1344
| 1344 |
Input:
159+852
Target:
| Input:
159+852
Target:
<scratch>
[1,5,9] has 3 digits.
[8,5,2] has 3 digits.
[1,5,9] + [8,5,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[1,5] + [8,5] , A=[1] , C=1 , 5+5+1=11 , A->1 , C->1
[1] + [8] , A=[1,1] , C=1 , 1+8+1=10 , A->0 , C->1
[] + [] , A=[0,1,1] C=1 , END
</scratch>
1011
| 1011 |
Input:
759+683
Target:
| Input:
759+683
Target:
<scratch>
[7,5,9] has 3 digits.
[6,8,3] has 3 digits.
[7,5,9] + [6,8,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[7,5] + [6,8] , A=[2] , C=1 , 5+8+1=14 , A->4 , C->1
[7] + [6] , A=[4,2] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,4,2] C=1 , END
</scratch>
1442
| 1442 |
Input:
725+886
Target:
| Input:
725+886
Target:
<scratch>
[7,2,5] has 3 digits.
[8,8,6] has 3 digits.
[7,2,5] + [8,8,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[7,2] + [8,8] , A=[1] , C=1 , 2+8+1=11 , A->1 , C->1
[7] + [8] , A=[1,1] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,1,1] C=1 , END
</scratch>
1611
| 1611 |
Input:
848+553
Target:
| Input:
848+553
Target:
<scratch>
[8,4,8] has 3 digits.
[5,5,3] has 3 digits.
[8,4,8] + [5,5,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[8,4] + [5,5] , A=[1] , C=1 , 4+5+1=10 , A->0 , C->1
[8] + [5] , A=[0,1] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,0,1] C=1 , END
</scratch>
1401
| 1401 |
Subsets and Splits