input_test
stringlengths 19
23
| scratchpad
stringlengths 151
283
| result_final
stringlengths 1
4
|
---|---|---|
Input:
698+995
Target:
| Input:
698+995
Target:
<scratch>
[6,9,8] has 3 digits.
[9,9,5] has 3 digits.
[6,9,8] + [9,9,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[6,9] + [9,9] , A=[3] , C=1 , 9+9+1=19 , A->9 , C->1
[6] + [9] , A=[9,3] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,9,3] C=1 , END
</scratch>
1693
| 1693 |
Input:
665+978
Target:
| Input:
665+978
Target:
<scratch>
[6,6,5] has 3 digits.
[9,7,8] has 3 digits.
[6,6,5] + [9,7,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[6,6] + [9,7] , A=[3] , C=1 , 6+7+1=14 , A->4 , C->1
[6] + [9] , A=[4,3] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,4,3] C=1 , END
</scratch>
1643
| 1643 |
Input:
536+579
Target:
| Input:
536+579
Target:
<scratch>
[5,3,6] has 3 digits.
[5,7,9] has 3 digits.
[5,3,6] + [5,7,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[5,3] + [5,7] , A=[5] , C=1 , 3+7+1=11 , A->1 , C->1
[5] + [5] , A=[1,5] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,1,5] C=1 , END
</scratch>
1115
| 1115 |
Input:
69+939
Target:
| Input:
69+939
Target:
<scratch>
[6,9] has 2 digits.
[9,3,9] has 3 digits.
[6,9] + [9,3,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[6] + [9,3] , A=[8] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [9] , A=[0,8] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,0,8] C=1 , END
</scratch>
1008
| 1008 |
Input:
694+558
Target:
| Input:
694+558
Target:
<scratch>
[6,9,4] has 3 digits.
[5,5,8] has 3 digits.
[6,9,4] + [5,5,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[6,9] + [5,5] , A=[2] , C=1 , 9+5+1=15 , A->5 , C->1
[6] + [5] , A=[5,2] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,5,2] C=1 , END
</scratch>
1252
| 1252 |
Input:
662+799
Target:
| Input:
662+799
Target:
<scratch>
[6,6,2] has 3 digits.
[7,9,9] has 3 digits.
[6,6,2] + [7,9,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[6,6] + [7,9] , A=[1] , C=1 , 6+9+1=16 , A->6 , C->1
[6] + [7] , A=[6,1] , C=1 , 6+7+1=14 , A->4 , C->1
[] + [] , A=[4,6,1] C=1 , END
</scratch>
1461
| 1461 |
Input:
484+978
Target:
| Input:
484+978
Target:
<scratch>
[4,8,4] has 3 digits.
[9,7,8] has 3 digits.
[4,8,4] + [9,7,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[4,8] + [9,7] , A=[2] , C=1 , 8+7+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:
649+959
Target:
| Input:
649+959
Target:
<scratch>
[6,4,9] has 3 digits.
[9,5,9] has 3 digits.
[6,4,9] + [9,5,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[6,4] + [9,5] , A=[8] , C=1 , 4+5+1=10 , A->0 , C->1
[6] + [9] , A=[0,8] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,0,8] C=1 , END
</scratch>
1608
| 1608 |
Input:
375+665
Target:
| Input:
375+665
Target:
<scratch>
[3,7,5] has 3 digits.
[6,6,5] has 3 digits.
[3,7,5] + [6,6,5] , A=[] , C=0 , 5+5+0=10 , A->0 , C->1
[3,7] + [6,6] , A=[0] , C=1 , 7+6+1=14 , A->4 , C->1
[3] + [6] , A=[4,0] , C=1 , 3+6+1=10 , A->0 , C->1
[] + [] , A=[0,4,0] C=1 , END
</scratch>
1040
| 1040 |
Input:
988+75
Target:
| Input:
988+75
Target:
<scratch>
[9,8,8] has 3 digits.
[7,5] has 2 digits.
[9,8,8] + [7,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[9,8] + [7] , A=[3] , C=1 , 8+7+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:
287+739
Target:
| Input:
287+739
Target:
<scratch>
[2,8,7] has 3 digits.
[7,3,9] has 3 digits.
[2,8,7] + [7,3,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[2,8] + [7,3] , A=[6] , C=1 , 8+3+1=12 , A->2 , C->1
[2] + [7] , A=[2,6] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,2,6] C=1 , END
</scratch>
1026
| 1026 |
Input:
371+779
Target:
| Input:
371+779
Target:
<scratch>
[3,7,1] has 3 digits.
[7,7,9] has 3 digits.
[3,7,1] + [7,7,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[3,7] + [7,7] , A=[0] , C=1 , 7+7+1=15 , A->5 , C->1
[3] + [7] , A=[5,0] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,5,0] C=1 , END
</scratch>
1150
| 1150 |
Input:
727+796
Target:
| Input:
727+796
Target:
<scratch>
[7,2,7] has 3 digits.
[7,9,6] has 3 digits.
[7,2,7] + [7,9,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[7,2] + [7,9] , A=[3] , C=1 , 2+9+1=12 , A->2 , C->1
[7] + [7] , A=[2,3] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,2,3] C=1 , END
</scratch>
1523
| 1523 |
Input:
495+818
Target:
| Input:
495+818
Target:
<scratch>
[4,9,5] has 3 digits.
[8,1,8] has 3 digits.
[4,9,5] + [8,1,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[4,9] + [8,1] , A=[3] , C=1 , 9+1+1=11 , A->1 , C->1
[4] + [8] , A=[1,3] , C=1 , 4+8+1=13 , A->3 , C->1
[] + [] , A=[3,1,3] C=1 , END
</scratch>
1313
| 1313 |
Input:
776+755
Target:
| Input:
776+755
Target:
<scratch>
[7,7,6] has 3 digits.
[7,5,5] has 3 digits.
[7,7,6] + [7,5,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[7,7] + [7,5] , A=[1] , C=1 , 7+5+1=13 , A->3 , C->1
[7] + [7] , A=[3,1] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,3,1] C=1 , END
</scratch>
1531
| 1531 |
Input:
676+566
Target:
| Input:
676+566
Target:
<scratch>
[6,7,6] has 3 digits.
[5,6,6] has 3 digits.
[6,7,6] + [5,6,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[6,7] + [5,6] , A=[2] , C=1 , 7+6+1=14 , A->4 , C->1
[6] + [5] , A=[4,2] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,4,2] C=1 , END
</scratch>
1242
| 1242 |
Input:
394+617
Target:
| Input:
394+617
Target:
<scratch>
[3,9,4] has 3 digits.
[6,1,7] has 3 digits.
[3,9,4] + [6,1,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[3,9] + [6,1] , A=[1] , C=1 , 9+1+1=11 , A->1 , C->1
[3] + [6] , A=[1,1] , C=1 , 3+6+1=10 , A->0 , C->1
[] + [] , A=[0,1,1] C=1 , END
</scratch>
1011
| 1011 |
Input:
623+899
Target:
| Input:
623+899
Target:
<scratch>
[6,2,3] has 3 digits.
[8,9,9] has 3 digits.
[6,2,3] + [8,9,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[6,2] + [8,9] , A=[2] , C=1 , 2+9+1=12 , A->2 , C->1
[6] + [8] , A=[2,2] , C=1 , 6+8+1=15 , A->5 , C->1
[] + [] , A=[5,2,2] C=1 , END
</scratch>
1522
| 1522 |
Input:
998+226
Target:
| Input:
998+226
Target:
<scratch>
[9,9,8] has 3 digits.
[2,2,6] has 3 digits.
[9,9,8] + [2,2,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[9,9] + [2,2] , A=[4] , C=1 , 9+2+1=12 , A->2 , C->1
[9] + [2] , A=[2,4] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,2,4] C=1 , END
</scratch>
1224
| 1224 |
Input:
557+453
Target:
| Input:
557+453
Target:
<scratch>
[5,5,7] has 3 digits.
[4,5,3] has 3 digits.
[5,5,7] + [4,5,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[5,5] + [4,5] , A=[0] , C=1 , 5+5+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:
599+439
Target:
| Input:
599+439
Target:
<scratch>
[5,9,9] has 3 digits.
[4,3,9] has 3 digits.
[5,9,9] + [4,3,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[5,9] + [4,3] , A=[8] , C=1 , 9+3+1=13 , A->3 , C->1
[5] + [4] , A=[3,8] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,3,8] C=1 , END
</scratch>
1038
| 1038 |
Input:
864+387
Target:
| Input:
864+387
Target:
<scratch>
[8,6,4] has 3 digits.
[3,8,7] has 3 digits.
[8,6,4] + [3,8,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[8,6] + [3,8] , A=[1] , C=1 , 6+8+1=15 , A->5 , C->1
[8] + [3] , A=[5,1] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,5,1] C=1 , END
</scratch>
1251
| 1251 |
Input:
375+929
Target:
| Input:
375+929
Target:
<scratch>
[3,7,5] has 3 digits.
[9,2,9] has 3 digits.
[3,7,5] + [9,2,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[3,7] + [9,2] , A=[4] , C=1 , 7+2+1=10 , A->0 , C->1
[3] + [9] , A=[0,4] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,0,4] C=1 , END
</scratch>
1304
| 1304 |
Input:
213+988
Target:
| Input:
213+988
Target:
<scratch>
[2,1,3] has 3 digits.
[9,8,8] has 3 digits.
[2,1,3] + [9,8,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[2,1] + [9,8] , A=[1] , C=1 , 1+8+1=10 , A->0 , C->1
[2] + [9] , A=[0,1] , C=1 , 2+9+1=12 , A->2 , C->1
[] + [] , A=[2,0,1] C=1 , END
</scratch>
1201
| 1201 |
Input:
467+996
Target:
| Input:
467+996
Target:
<scratch>
[4,6,7] has 3 digits.
[9,9,6] has 3 digits.
[4,6,7] + [9,9,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[4,6] + [9,9] , A=[3] , C=1 , 6+9+1=16 , A->6 , C->1
[4] + [9] , A=[6,3] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,6,3] C=1 , END
</scratch>
1463
| 1463 |
Input:
489+926
Target:
| Input:
489+926
Target:
<scratch>
[4,8,9] has 3 digits.
[9,2,6] has 3 digits.
[4,8,9] + [9,2,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[4,8] + [9,2] , A=[5] , C=1 , 8+2+1=11 , A->1 , C->1
[4] + [9] , A=[1,5] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,1,5] C=1 , END
</scratch>
1415
| 1415 |
Input:
563+989
Target:
| Input:
563+989
Target:
<scratch>
[5,6,3] has 3 digits.
[9,8,9] has 3 digits.
[5,6,3] + [9,8,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[5,6] + [9,8] , A=[2] , C=1 , 6+8+1=15 , A->5 , C->1
[5] + [9] , A=[5,2] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,5,2] C=1 , END
</scratch>
1552
| 1552 |
Input:
949+285
Target:
| Input:
949+285
Target:
<scratch>
[9,4,9] has 3 digits.
[2,8,5] has 3 digits.
[9,4,9] + [2,8,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[9,4] + [2,8] , A=[4] , C=1 , 4+8+1=13 , A->3 , C->1
[9] + [2] , A=[3,4] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,3,4] C=1 , END
</scratch>
1234
| 1234 |
Input:
792+968
Target:
| Input:
792+968
Target:
<scratch>
[7,9,2] has 3 digits.
[9,6,8] has 3 digits.
[7,9,2] + [9,6,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[7,9] + [9,6] , A=[0] , C=1 , 9+6+1=16 , A->6 , C->1
[7] + [9] , A=[6,0] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,6,0] C=1 , END
</scratch>
1760
| 1760 |
Input:
583+739
Target:
| Input:
583+739
Target:
<scratch>
[5,8,3] has 3 digits.
[7,3,9] has 3 digits.
[5,8,3] + [7,3,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[5,8] + [7,3] , A=[2] , C=1 , 8+3+1=12 , A->2 , C->1
[5] + [7] , A=[2,2] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,2,2] C=1 , END
</scratch>
1322
| 1322 |
Input:
595+909
Target:
| Input:
595+909
Target:
<scratch>
[5,9,5] has 3 digits.
[9,0,9] has 3 digits.
[5,9,5] + [9,0,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[5,9] + [9,0] , A=[4] , C=1 , 9+0+1=10 , A->0 , C->1
[5] + [9] , A=[0,4] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,0,4] C=1 , END
</scratch>
1504
| 1504 |
Input:
957+76
Target:
| Input:
957+76
Target:
<scratch>
[9,5,7] has 3 digits.
[7,6] has 2 digits.
[9,5,7] + [7,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[9,5] + [7] , A=[3] , C=1 , 5+7+1=13 , A->3 , C->1
[9] + [] , A=[3,3] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,3,3] C=1 , END
</scratch>
1033
| 1033 |
Input:
882+138
Target:
| Input:
882+138
Target:
<scratch>
[8,8,2] has 3 digits.
[1,3,8] has 3 digits.
[8,8,2] + [1,3,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[8,8] + [1,3] , A=[0] , C=1 , 8+3+1=12 , A->2 , C->1
[8] + [1] , A=[2,0] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,2,0] C=1 , END
</scratch>
1020
| 1020 |
Input:
993+358
Target:
| Input:
993+358
Target:
<scratch>
[9,9,3] has 3 digits.
[3,5,8] has 3 digits.
[9,9,3] + [3,5,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[9,9] + [3,5] , A=[1] , C=1 , 9+5+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:
897+517
Target:
| Input:
897+517
Target:
<scratch>
[8,9,7] has 3 digits.
[5,1,7] has 3 digits.
[8,9,7] + [5,1,7] , A=[] , C=0 , 7+7+0=14 , A->4 , C->1
[8,9] + [5,1] , A=[4] , C=1 , 9+1+1=11 , A->1 , C->1
[8] + [5] , A=[1,4] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,1,4] C=1 , END
</scratch>
1414
| 1414 |
Input:
899+342
Target:
| Input:
899+342
Target:
<scratch>
[8,9,9] has 3 digits.
[3,4,2] has 3 digits.
[8,9,9] + [3,4,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[8,9] + [3,4] , A=[1] , C=1 , 9+4+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:
688+779
Target:
| Input:
688+779
Target:
<scratch>
[6,8,8] has 3 digits.
[7,7,9] has 3 digits.
[6,8,8] + [7,7,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[6,8] + [7,7] , A=[7] , C=1 , 8+7+1=16 , A->6 , C->1
[6] + [7] , A=[6,7] , C=1 , 6+7+1=14 , A->4 , C->1
[] + [] , A=[4,6,7] C=1 , END
</scratch>
1467
| 1467 |
Input:
554+647
Target:
| Input:
554+647
Target:
<scratch>
[5,5,4] has 3 digits.
[6,4,7] has 3 digits.
[5,5,4] + [6,4,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[5,5] + [6,4] , A=[1] , C=1 , 5+4+1=10 , A->0 , C->1
[5] + [6] , A=[0,1] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,0,1] C=1 , END
</scratch>
1201
| 1201 |
Input:
954+998
Target:
| Input:
954+998
Target:
<scratch>
[9,5,4] has 3 digits.
[9,9,8] has 3 digits.
[9,5,4] + [9,9,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[9,5] + [9,9] , A=[2] , C=1 , 5+9+1=15 , A->5 , C->1
[9] + [9] , A=[5,2] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,5,2] C=1 , END
</scratch>
1952
| 1952 |
Input:
962+478
Target:
| Input:
962+478
Target:
<scratch>
[9,6,2] has 3 digits.
[4,7,8] has 3 digits.
[9,6,2] + [4,7,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[9,6] + [4,7] , A=[0] , C=1 , 6+7+1=14 , A->4 , C->1
[9] + [4] , A=[4,0] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,4,0] C=1 , END
</scratch>
1440
| 1440 |
Input:
466+746
Target:
| Input:
466+746
Target:
<scratch>
[4,6,6] has 3 digits.
[7,4,6] has 3 digits.
[4,6,6] + [7,4,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[4,6] + [7,4] , A=[2] , C=1 , 6+4+1=11 , A->1 , C->1
[4] + [7] , A=[1,2] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,1,2] C=1 , END
</scratch>
1212
| 1212 |
Input:
989+37
Target:
| Input:
989+37
Target:
<scratch>
[9,8,9] has 3 digits.
[3,7] has 2 digits.
[9,8,9] + [3,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[9,8] + [3] , A=[6] , C=1 , 8+3+1=12 , A->2 , C->1
[9] + [] , A=[2,6] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,2,6] C=1 , END
</scratch>
1026
| 1026 |
Input:
995+478
Target:
| Input:
995+478
Target:
<scratch>
[9,9,5] has 3 digits.
[4,7,8] has 3 digits.
[9,9,5] + [4,7,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[9,9] + [4,7] , A=[3] , C=1 , 9+7+1=17 , A->7 , C->1
[9] + [4] , A=[7,3] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,7,3] C=1 , END
</scratch>
1473
| 1473 |
Input:
979+791
Target:
| Input:
979+791
Target:
<scratch>
[9,7,9] has 3 digits.
[7,9,1] has 3 digits.
[9,7,9] + [7,9,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[9,7] + [7,9] , A=[0] , C=1 , 7+9+1=17 , A->7 , C->1
[9] + [7] , A=[7,0] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,7,0] C=1 , END
</scratch>
1770
| 1770 |
Input:
389+717
Target:
| Input:
389+717
Target:
<scratch>
[3,8,9] has 3 digits.
[7,1,7] has 3 digits.
[3,8,9] + [7,1,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[3,8] + [7,1] , A=[6] , C=1 , 8+1+1=10 , A->0 , C->1
[3] + [7] , A=[0,6] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,0,6] C=1 , END
</scratch>
1106
| 1106 |
Input:
578+588
Target:
| Input:
578+588
Target:
<scratch>
[5,7,8] has 3 digits.
[5,8,8] has 3 digits.
[5,7,8] + [5,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[5,7] + [5,8] , A=[6] , C=1 , 7+8+1=16 , A->6 , C->1
[5] + [5] , A=[6,6] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,6,6] C=1 , END
</scratch>
1166
| 1166 |
Input:
77+965
Target:
| Input:
77+965
Target:
<scratch>
[7,7] has 2 digits.
[9,6,5] has 3 digits.
[7,7] + [9,6,5] , A=[] , C=0 , 7+5+0=12 , A->2 , C->1
[7] + [9,6] , A=[2] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [9] , A=[4,2] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,4,2] C=1 , END
</scratch>
1042
| 1042 |
Input:
685+426
Target:
| Input:
685+426
Target:
<scratch>
[6,8,5] has 3 digits.
[4,2,6] has 3 digits.
[6,8,5] + [4,2,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[6,8] + [4,2] , A=[1] , C=1 , 8+2+1=11 , A->1 , C->1
[6] + [4] , A=[1,1] , C=1 , 6+4+1=11 , A->1 , C->1
[] + [] , A=[1,1,1] C=1 , END
</scratch>
1111
| 1111 |
Input:
607+799
Target:
| Input:
607+799
Target:
<scratch>
[6,0,7] has 3 digits.
[7,9,9] has 3 digits.
[6,0,7] + [7,9,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[6,0] + [7,9] , A=[6] , C=1 , 0+9+1=10 , A->0 , C->1
[6] + [7] , A=[0,6] , C=1 , 6+7+1=14 , A->4 , C->1
[] + [] , A=[4,0,6] C=1 , END
</scratch>
1406
| 1406 |
Input:
375+956
Target:
| Input:
375+956
Target:
<scratch>
[3,7,5] has 3 digits.
[9,5,6] has 3 digits.
[3,7,5] + [9,5,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[3,7] + [9,5] , A=[1] , C=1 , 7+5+1=13 , A->3 , C->1
[3] + [9] , A=[3,1] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,3,1] C=1 , END
</scratch>
1331
| 1331 |
Input:
786+627
Target:
| Input:
786+627
Target:
<scratch>
[7,8,6] has 3 digits.
[6,2,7] has 3 digits.
[7,8,6] + [6,2,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[7,8] + [6,2] , A=[3] , C=1 , 8+2+1=11 , A->1 , C->1
[7] + [6] , A=[1,3] , C=1 , 7+6+1=14 , A->4 , C->1
[] + [] , A=[4,1,3] C=1 , END
</scratch>
1413
| 1413 |
Input:
886+259
Target:
| Input:
886+259
Target:
<scratch>
[8,8,6] has 3 digits.
[2,5,9] has 3 digits.
[8,8,6] + [2,5,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[8,8] + [2,5] , A=[5] , C=1 , 8+5+1=14 , A->4 , C->1
[8] + [2] , A=[4,5] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,4,5] C=1 , END
</scratch>
1145
| 1145 |
Input:
67+998
Target:
| Input:
67+998
Target:
<scratch>
[6,7] has 2 digits.
[9,9,8] has 3 digits.
[6,7] + [9,9,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[6] + [9,9] , A=[5] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [9] , A=[6,5] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,6,5] C=1 , END
</scratch>
1065
| 1065 |
Input:
534+687
Target:
| Input:
534+687
Target:
<scratch>
[5,3,4] has 3 digits.
[6,8,7] has 3 digits.
[5,3,4] + [6,8,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[5,3] + [6,8] , A=[1] , C=1 , 3+8+1=12 , A->2 , C->1
[5] + [6] , A=[2,1] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,2,1] C=1 , END
</scratch>
1221
| 1221 |
Input:
984+176
Target:
| Input:
984+176
Target:
<scratch>
[9,8,4] has 3 digits.
[1,7,6] has 3 digits.
[9,8,4] + [1,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[9,8] + [1,7] , A=[0] , C=1 , 8+7+1=16 , A->6 , C->1
[9] + [1] , A=[6,0] , C=1 , 9+1+1=11 , A->1 , C->1
[] + [] , A=[1,6,0] C=1 , END
</scratch>
1160
| 1160 |
Input:
885+346
Target:
| Input:
885+346
Target:
<scratch>
[8,8,5] has 3 digits.
[3,4,6] has 3 digits.
[8,8,5] + [3,4,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[8,8] + [3,4] , A=[1] , C=1 , 8+4+1=13 , A->3 , C->1
[8] + [3] , A=[3,1] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,3,1] C=1 , END
</scratch>
1231
| 1231 |
Input:
978+924
Target:
| Input:
978+924
Target:
<scratch>
[9,7,8] has 3 digits.
[9,2,4] has 3 digits.
[9,7,8] + [9,2,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[9,7] + [9,2] , A=[2] , C=1 , 7+2+1=10 , A->0 , C->1
[9] + [9] , A=[0,2] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,0,2] C=1 , END
</scratch>
1902
| 1902 |
Input:
673+949
Target:
| Input:
673+949
Target:
<scratch>
[6,7,3] has 3 digits.
[9,4,9] has 3 digits.
[6,7,3] + [9,4,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[6,7] + [9,4] , A=[2] , C=1 , 7+4+1=12 , A->2 , C->1
[6] + [9] , A=[2,2] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,2,2] C=1 , END
</scratch>
1622
| 1622 |
Input:
961+679
Target:
| Input:
961+679
Target:
<scratch>
[9,6,1] has 3 digits.
[6,7,9] has 3 digits.
[9,6,1] + [6,7,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[9,6] + [6,7] , A=[0] , C=1 , 6+7+1=14 , A->4 , C->1
[9] + [6] , A=[4,0] , C=1 , 9+6+1=16 , A->6 , C->1
[] + [] , A=[6,4,0] C=1 , END
</scratch>
1640
| 1640 |
Input:
385+825
Target:
| Input:
385+825
Target:
<scratch>
[3,8,5] has 3 digits.
[8,2,5] has 3 digits.
[3,8,5] + [8,2,5] , A=[] , C=0 , 5+5+0=10 , A->0 , C->1
[3,8] + [8,2] , A=[0] , C=1 , 8+2+1=11 , A->1 , C->1
[3] + [8] , A=[1,0] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,1,0] C=1 , END
</scratch>
1210
| 1210 |
Input:
879+663
Target:
| Input:
879+663
Target:
<scratch>
[8,7,9] has 3 digits.
[6,6,3] has 3 digits.
[8,7,9] + [6,6,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[8,7] + [6,6] , A=[2] , C=1 , 7+6+1=14 , A->4 , C->1
[8] + [6] , A=[4,2] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,4,2] C=1 , END
</scratch>
1542
| 1542 |
Input:
406+995
Target:
| Input:
406+995
Target:
<scratch>
[4,0,6] has 3 digits.
[9,9,5] has 3 digits.
[4,0,6] + [9,9,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[4,0] + [9,9] , A=[1] , C=1 , 0+9+1=10 , A->0 , C->1
[4] + [9] , A=[0,1] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,0,1] C=1 , END
</scratch>
1401
| 1401 |
Input:
877+954
Target:
| Input:
877+954
Target:
<scratch>
[8,7,7] has 3 digits.
[9,5,4] has 3 digits.
[8,7,7] + [9,5,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[8,7] + [9,5] , A=[1] , C=1 , 7+5+1=13 , A->3 , C->1
[8] + [9] , A=[3,1] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,3,1] C=1 , END
</scratch>
1831
| 1831 |
Input:
956+179
Target:
| Input:
956+179
Target:
<scratch>
[9,5,6] has 3 digits.
[1,7,9] has 3 digits.
[9,5,6] + [1,7,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[9,5] + [1,7] , A=[5] , C=1 , 5+7+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:
776+935
Target:
| Input:
776+935
Target:
<scratch>
[7,7,6] has 3 digits.
[9,3,5] has 3 digits.
[7,7,6] + [9,3,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[7,7] + [9,3] , A=[1] , C=1 , 7+3+1=11 , A->1 , C->1
[7] + [9] , A=[1,1] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,1,1] C=1 , END
</scratch>
1711
| 1711 |
Input:
876+945
Target:
| Input:
876+945
Target:
<scratch>
[8,7,6] has 3 digits.
[9,4,5] has 3 digits.
[8,7,6] + [9,4,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[8,7] + [9,4] , A=[1] , C=1 , 7+4+1=12 , A->2 , C->1
[8] + [9] , A=[2,1] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,2,1] C=1 , END
</scratch>
1821
| 1821 |
Input:
864+586
Target:
| Input:
864+586
Target:
<scratch>
[8,6,4] has 3 digits.
[5,8,6] has 3 digits.
[8,6,4] + [5,8,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[8,6] + [5,8] , A=[0] , C=1 , 6+8+1=15 , A->5 , C->1
[8] + [5] , A=[5,0] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,5,0] C=1 , END
</scratch>
1450
| 1450 |
Input:
774+586
Target:
| Input:
774+586
Target:
<scratch>
[7,7,4] has 3 digits.
[5,8,6] has 3 digits.
[7,7,4] + [5,8,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[7,7] + [5,8] , A=[0] , C=1 , 7+8+1=16 , A->6 , C->1
[7] + [5] , A=[6,0] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,6,0] C=1 , END
</scratch>
1360
| 1360 |
Input:
914+989
Target:
| Input:
914+989
Target:
<scratch>
[9,1,4] has 3 digits.
[9,8,9] has 3 digits.
[9,1,4] + [9,8,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[9,1] + [9,8] , A=[3] , C=1 , 1+8+1=10 , A->0 , C->1
[9] + [9] , A=[0,3] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,0,3] C=1 , END
</scratch>
1903
| 1903 |
Input:
495+746
Target:
| Input:
495+746
Target:
<scratch>
[4,9,5] has 3 digits.
[7,4,6] has 3 digits.
[4,9,5] + [7,4,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[4,9] + [7,4] , A=[1] , C=1 , 9+4+1=14 , A->4 , C->1
[4] + [7] , A=[4,1] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,4,1] C=1 , END
</scratch>
1241
| 1241 |
Input:
846+586
Target:
| Input:
846+586
Target:
<scratch>
[8,4,6] has 3 digits.
[5,8,6] has 3 digits.
[8,4,6] + [5,8,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[8,4] + [5,8] , A=[2] , C=1 , 4+8+1=13 , A->3 , C->1
[8] + [5] , A=[3,2] , C=1 , 8+5+1=14 , A->4 , C->1
[] + [] , A=[4,3,2] C=1 , END
</scratch>
1432
| 1432 |
Input:
372+828
Target:
| Input:
372+828
Target:
<scratch>
[3,7,2] has 3 digits.
[8,2,8] has 3 digits.
[3,7,2] + [8,2,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[3,7] + [8,2] , A=[0] , C=1 , 7+2+1=10 , A->0 , C->1
[3] + [8] , A=[0,0] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,0,0] C=1 , END
</scratch>
1200
| 1200 |
Input:
898+802
Target:
| Input:
898+802
Target:
<scratch>
[8,9,8] has 3 digits.
[8,0,2] has 3 digits.
[8,9,8] + [8,0,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[8,9] + [8,0] , A=[0] , C=1 , 9+0+1=10 , A->0 , C->1
[8] + [8] , A=[0,0] , C=1 , 8+8+1=17 , A->7 , C->1
[] + [] , A=[7,0,0] C=1 , END
</scratch>
1700
| 1700 |
Input:
869+764
Target:
| Input:
869+764
Target:
<scratch>
[8,6,9] has 3 digits.
[7,6,4] has 3 digits.
[8,6,9] + [7,6,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[8,6] + [7,6] , A=[3] , C=1 , 6+6+1=13 , A->3 , C->1
[8] + [7] , A=[3,3] , C=1 , 8+7+1=16 , A->6 , C->1
[] + [] , A=[6,3,3] C=1 , END
</scratch>
1633
| 1633 |
Input:
997+748
Target:
| Input:
997+748
Target:
<scratch>
[9,9,7] has 3 digits.
[7,4,8] has 3 digits.
[9,9,7] + [7,4,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[9,9] + [7,4] , A=[5] , C=1 , 9+4+1=14 , A->4 , C->1
[9] + [7] , A=[4,5] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,4,5] C=1 , END
</scratch>
1745
| 1745 |
Input:
385+777
Target:
| Input:
385+777
Target:
<scratch>
[3,8,5] has 3 digits.
[7,7,7] has 3 digits.
[3,8,5] + [7,7,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[3,8] + [7,7] , A=[2] , C=1 , 8+7+1=16 , A->6 , C->1
[3] + [7] , A=[6,2] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,6,2] C=1 , END
</scratch>
1162
| 1162 |
Input:
368+735
Target:
| Input:
368+735
Target:
<scratch>
[3,6,8] has 3 digits.
[7,3,5] has 3 digits.
[3,6,8] + [7,3,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[3,6] + [7,3] , A=[3] , C=1 , 6+3+1=10 , A->0 , C->1
[3] + [7] , A=[0,3] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,0,3] C=1 , END
</scratch>
1103
| 1103 |
Input:
848+665
Target:
| Input:
848+665
Target:
<scratch>
[8,4,8] has 3 digits.
[6,6,5] has 3 digits.
[8,4,8] + [6,6,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[8,4] + [6,6] , A=[3] , C=1 , 4+6+1=11 , A->1 , C->1
[8] + [6] , A=[1,3] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,1,3] C=1 , END
</scratch>
1513
| 1513 |
Input:
954+798
Target:
| Input:
954+798
Target:
<scratch>
[9,5,4] has 3 digits.
[7,9,8] has 3 digits.
[9,5,4] + [7,9,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[9,5] + [7,9] , A=[2] , C=1 , 5+9+1=15 , A->5 , C->1
[9] + [7] , A=[5,2] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,5,2] C=1 , END
</scratch>
1752
| 1752 |
Input:
554+749
Target:
| Input:
554+749
Target:
<scratch>
[5,5,4] has 3 digits.
[7,4,9] has 3 digits.
[5,5,4] + [7,4,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[5,5] + [7,4] , A=[3] , C=1 , 5+4+1=10 , A->0 , C->1
[5] + [7] , A=[0,3] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,0,3] C=1 , END
</scratch>
1303
| 1303 |
Input:
397+976
Target:
| Input:
397+976
Target:
<scratch>
[3,9,7] has 3 digits.
[9,7,6] has 3 digits.
[3,9,7] + [9,7,6] , A=[] , C=0 , 7+6+0=13 , A->3 , C->1
[3,9] + [9,7] , A=[3] , C=1 , 9+7+1=17 , A->7 , C->1
[3] + [9] , A=[7,3] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,7,3] C=1 , END
</scratch>
1373
| 1373 |
Input:
573+858
Target:
| Input:
573+858
Target:
<scratch>
[5,7,3] has 3 digits.
[8,5,8] has 3 digits.
[5,7,3] + [8,5,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[5,7] + [8,5] , A=[1] , C=1 , 7+5+1=13 , A->3 , C->1
[5] + [8] , A=[3,1] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,3,1] C=1 , END
</scratch>
1431
| 1431 |
Input:
283+829
Target:
| Input:
283+829
Target:
<scratch>
[2,8,3] has 3 digits.
[8,2,9] has 3 digits.
[2,8,3] + [8,2,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[2,8] + [8,2] , A=[2] , C=1 , 8+2+1=11 , A->1 , C->1
[2] + [8] , A=[1,2] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,1,2] C=1 , END
</scratch>
1112
| 1112 |
Input:
48+974
Target:
| Input:
48+974
Target:
<scratch>
[4,8] has 2 digits.
[9,7,4] has 3 digits.
[4,8] + [9,7,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[4] + [9,7] , A=[2] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [9] , A=[2,2] , C=1 , 0+9+1=10 , A->0 , C->1
[] + [] , A=[0,2,2] C=1 , END
</scratch>
1022
| 1022 |
Input:
648+388
Target:
| Input:
648+388
Target:
<scratch>
[6,4,8] has 3 digits.
[3,8,8] has 3 digits.
[6,4,8] + [3,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[6,4] + [3,8] , A=[6] , C=1 , 4+8+1=13 , A->3 , C->1
[6] + [3] , A=[3,6] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,3,6] C=1 , END
</scratch>
1036
| 1036 |
Input:
879+521
Target:
| Input:
879+521
Target:
<scratch>
[8,7,9] has 3 digits.
[5,2,1] has 3 digits.
[8,7,9] + [5,2,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[8,7] + [5,2] , A=[0] , C=1 , 7+2+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:
565+886
Target:
| Input:
565+886
Target:
<scratch>
[5,6,5] has 3 digits.
[8,8,6] has 3 digits.
[5,6,5] + [8,8,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[5,6] + [8,8] , A=[1] , C=1 , 6+8+1=15 , A->5 , C->1
[5] + [8] , A=[5,1] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,5,1] C=1 , END
</scratch>
1451
| 1451 |
Input:
776+375
Target:
| Input:
776+375
Target:
<scratch>
[7,7,6] has 3 digits.
[3,7,5] has 3 digits.
[7,7,6] + [3,7,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[7,7] + [3,7] , A=[1] , C=1 , 7+7+1=15 , A->5 , C->1
[7] + [3] , A=[5,1] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,5,1] C=1 , END
</scratch>
1151
| 1151 |
Input:
514+487
Target:
| Input:
514+487
Target:
<scratch>
[5,1,4] has 3 digits.
[4,8,7] has 3 digits.
[5,1,4] + [4,8,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[5,1] + [4,8] , A=[1] , C=1 , 1+8+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:
599+819
Target:
| Input:
599+819
Target:
<scratch>
[5,9,9] has 3 digits.
[8,1,9] has 3 digits.
[5,9,9] + [8,1,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[5,9] + [8,1] , A=[8] , C=1 , 9+1+1=11 , A->1 , C->1
[5] + [8] , A=[1,8] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,1,8] C=1 , END
</scratch>
1418
| 1418 |
Input:
988+287
Target:
| Input:
988+287
Target:
<scratch>
[9,8,8] has 3 digits.
[2,8,7] has 3 digits.
[9,8,8] + [2,8,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[9,8] + [2,8] , A=[5] , C=1 , 8+8+1=17 , A->7 , C->1
[9] + [2] , A=[7,5] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,7,5] C=1 , END
</scratch>
1275
| 1275 |
Input:
955+989
Target:
| Input:
955+989
Target:
<scratch>
[9,5,5] has 3 digits.
[9,8,9] has 3 digits.
[9,5,5] + [9,8,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[9,5] + [9,8] , A=[4] , C=1 , 5+8+1=14 , A->4 , C->1
[9] + [9] , A=[4,4] , C=1 , 9+9+1=19 , A->9 , C->1
[] + [] , A=[9,4,4] C=1 , END
</scratch>
1944
| 1944 |
Input:
878+148
Target:
| Input:
878+148
Target:
<scratch>
[8,7,8] has 3 digits.
[1,4,8] has 3 digits.
[8,7,8] + [1,4,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[8,7] + [1,4] , A=[6] , C=1 , 7+4+1=12 , A->2 , C->1
[8] + [1] , A=[2,6] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,2,6] C=1 , END
</scratch>
1026
| 1026 |
Input:
459+955
Target:
| Input:
459+955
Target:
<scratch>
[4,5,9] has 3 digits.
[9,5,5] has 3 digits.
[4,5,9] + [9,5,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[4,5] + [9,5] , A=[4] , C=1 , 5+5+1=11 , A->1 , C->1
[4] + [9] , A=[1,4] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,1,4] C=1 , END
</scratch>
1414
| 1414 |
Input:
353+877
Target:
| Input:
353+877
Target:
<scratch>
[3,5,3] has 3 digits.
[8,7,7] has 3 digits.
[3,5,3] + [8,7,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[3,5] + [8,7] , A=[0] , C=1 , 5+7+1=13 , A->3 , C->1
[3] + [8] , A=[3,0] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,3,0] C=1 , END
</scratch>
1230
| 1230 |
Input:
938+82
Target:
| Input:
938+82
Target:
<scratch>
[9,3,8] has 3 digits.
[8,2] has 2 digits.
[9,3,8] + [8,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[9,3] + [8] , A=[0] , C=1 , 3+8+1=12 , A->2 , C->1
[9] + [] , A=[2,0] , C=1 , 9+0+1=10 , A->0 , C->1
[] + [] , A=[0,2,0] C=1 , END
</scratch>
1020
| 1020 |
Input:
289+846
Target:
| Input:
289+846
Target:
<scratch>
[2,8,9] has 3 digits.
[8,4,6] has 3 digits.
[2,8,9] + [8,4,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[2,8] + [8,4] , A=[5] , C=1 , 8+4+1=13 , A->3 , C->1
[2] + [8] , A=[3,5] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,3,5] C=1 , END
</scratch>
1135
| 1135 |
Input:
654+376
Target:
| Input:
654+376
Target:
<scratch>
[6,5,4] has 3 digits.
[3,7,6] has 3 digits.
[6,5,4] + [3,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[6,5] + [3,7] , A=[0] , C=1 , 5+7+1=13 , A->3 , C->1
[6] + [3] , A=[3,0] , C=1 , 6+3+1=10 , A->0 , C->1
[] + [] , A=[0,3,0] C=1 , END
</scratch>
1030
| 1030 |
Input:
446+559
Target:
| Input:
446+559
Target:
<scratch>
[4,4,6] has 3 digits.
[5,5,9] has 3 digits.
[4,4,6] + [5,5,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[4,4] + [5,5] , A=[5] , C=1 , 4+5+1=10 , A->0 , C->1
[4] + [5] , A=[0,5] , C=1 , 4+5+1=10 , A->0 , C->1
[] + [] , A=[0,0,5] C=1 , END
</scratch>
1005
| 1005 |
Input:
894+936
Target:
| Input:
894+936
Target:
<scratch>
[8,9,4] has 3 digits.
[9,3,6] has 3 digits.
[8,9,4] + [9,3,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[8,9] + [9,3] , A=[0] , C=1 , 9+3+1=13 , A->3 , C->1
[8] + [9] , A=[3,0] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,3,0] C=1 , END
</scratch>
1830
| 1830 |
Subsets and Splits