input_test
stringlengths 23
23
| scratchpad
stringlengths 283
287
| result_final
stringlengths 3
4
|
---|---|---|
Input:
936+899
Target:
| Input:
380+948
Target:
<scratch>
[3,8,0] has 3 digits.
[9,4,8] has 3 digits.
[3,8,0] + [9,4,8] , A=[] , C=0 , 0+8+0=8 , A->8 , C->0
[3,8] + [9,4] , A=[8] , C=0 , 8+4+0=12 , A->2 , C->1
[3] + [9] , A=[2,8] , C=1 , 3+9+1=13 , A->3 , C->1
[] + [] , A=[3,2,8] C=1 , END
</scratch>
1328
</s> | 732 |
Input:
416+294
Target:
| Input:
369+231
Target:
<scratch>
[3,6,9] has 3 digits.
[2,3,1] has 3 digits.
[3,6,9] + [2,3,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[3,6] + [2,3] , A=[0] , C=1 , 6+3+1=10 , A->0 , C->1
[3] + [2] , A=[0,0] , C=1 , 3+2+1=6 , A->6 , C->0
[] + [] , A=[6,0,0] C=0 , END
</scratch>
600
</s> | 1425 |
Input:
211+270
Target:
| Input:
858+372
Target:
<scratch>
[8,5,8] has 3 digits.
[3,7,2] has 3 digits.
[8,5,8] + [3,7,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[8,5] + [3,7] , A=[0] , C=1 , 5+7+1=13 , A->3 , C->1
[8] + [3] , A=[3,0] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,3,0] C=1 , END
</scratch>
1230
</s> | 1453 |
Input:
953+334
Target:
| Input:
631+845
Target:
<scratch>
[6,3,1] has 3 digits.
[8,4,5] has 3 digits.
[6,3,1] + [8,4,5] , A=[] , C=0 , 1+5+0=6 , A->6 , C->0
[6,3] + [8,4] , A=[6] , C=0 , 3+4+0=7 , A->7 , C->0
[6] + [8] , A=[7,6] , C=0 , 6+8+0=14 , A->4 , C->1
[] + [] , A=[4,7,6] C=1 , END
</scratch>
1476
</s> | 821 |
Input:
401+991
Target:
| Input:
962+728
Target:
<scratch>
[9,6,2] has 3 digits.
[7,2,8] has 3 digits.
[9,6,2] + [7,2,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[9,6] + [7,2] , A=[0] , C=1 , 6+2+1=9 , A->9 , C->0
[9] + [7] , A=[9,0] , C=0 , 9+7+0=16 , A->6 , C->1
[] + [] , A=[6,9,0] C=1 , END
</scratch>
1690
</s> | 1605 |
Input:
821+841
Target:
| Input:
154+971
Target:
<scratch>
[1,5,4] has 3 digits.
[9,7,1] has 3 digits.
[1,5,4] + [9,7,1] , A=[] , C=0 , 4+1+0=5 , A->5 , C->0
[1,5] + [9,7] , A=[5] , C=0 , 5+7+0=12 , A->2 , C->1
[1] + [9] , A=[2,5] , C=1 , 1+9+1=11 , A->1 , C->1
[] + [] , A=[1,2,5] C=1 , END
</scratch>
1125
</s> | 758 |
Input:
741+452
Target:
| Input:
319+874
Target:
<scratch>
[3,1,9] has 3 digits.
[8,7,4] has 3 digits.
[3,1,9] + [8,7,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[3,1] + [8,7] , A=[3] , C=1 , 1+7+1=9 , A->9 , C->0
[3] + [8] , A=[9,3] , C=0 , 3+8+0=11 , A->1 , C->1
[] + [] , A=[1,9,3] C=1 , END
</scratch>
1193
</s> | 655 |
Input:
844+433
Target:
| Input:
641+632
Target:
<scratch>
[6,4,1] has 3 digits.
[6,3,2] has 3 digits.
[6,4,1] + [6,3,2] , A=[] , C=0 , 1+2+0=3 , A->3 , C->0
[6,4] + [6,3] , A=[3] , C=0 , 4+3+0=7 , A->7 , C->0
[6] + [6] , A=[7,3] , C=0 , 6+6+0=12 , A->2 , C->1
[] + [] , A=[2,7,3] C=1 , END
</scratch>
1273
</s> | 1337 |
Input:
149+618
Target:
| Input:
776+325
Target:
<scratch>
[7,7,6] has 3 digits.
[3,2,5] has 3 digits.
[7,7,6] + [3,2,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[7,7] + [3,2] , A=[1] , C=1 , 7+2+1=10 , A->0 , C->1
[7] + [3] , A=[0,1] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,0,1] C=1 , END
</scratch>
1101
</s> | 234 |
Input:
913+346
Target:
| Input:
169+180
Target:
<scratch>
[1,6,9] has 3 digits.
[1,8,0] has 3 digits.
[1,6,9] + [1,8,0] , A=[] , C=0 , 9+0+0=9 , A->9 , C->0
[1,6] + [1,8] , A=[9] , C=0 , 6+8+0=14 , A->4 , C->1
[1] + [1] , A=[4,9] , C=1 , 1+1+1=3 , A->3 , C->0
[] + [] , A=[3,4,9] C=0 , END
</scratch>
349
</s> | 1434 |
Input:
116+900
Target:
| Input:
994+749
Target:
<scratch>
[9,9,4] has 3 digits.
[7,4,9] has 3 digits.
[9,9,4] + [7,4,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[9,9] + [7,4] , A=[3] , C=1 , 9+4+1=14 , A->4 , C->1
[9] + [7] , A=[4,3] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,4,3] C=1 , END
</scratch>
1743
</s> | 296 |
Input:
732+632
Target:
| Input:
518+541
Target:
<scratch>
[5,1,8] has 3 digits.
[5,4,1] has 3 digits.
[5,1,8] + [5,4,1] , A=[] , C=0 , 8+1+0=9 , A->9 , C->0
[5,1] + [5,4] , A=[9] , C=0 , 1+4+0=5 , A->5 , C->0
[5] + [5] , A=[5,9] , C=0 , 5+5+0=10 , A->0 , C->1
[] + [] , A=[0,5,9] C=1 , END
</scratch>
1059
</s> | 1337 |
Input:
533+176
Target:
| Input:
329+914
Target:
<scratch>
[3,2,9] has 3 digits.
[9,1,4] has 3 digits.
[3,2,9] + [9,1,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[3,2] + [9,1] , A=[3] , C=1 , 2+1+1=4 , A->4 , C->0
[3] + [9] , A=[4,3] , C=0 , 3+9+0=12 , A->2 , C->1
[] + [] , A=[2,4,3] C=1 , END
</scratch>
1243
</s> | 993 |
Input:
710+126
Target:
| Input:
664+920
Target:
<scratch>
[6,6,4] has 3 digits.
[9,2,0] has 3 digits.
[6,6,4] + [9,2,0] , A=[] , C=0 , 4+0+0=4 , A->4 , C->0
[6,6] + [9,2] , A=[4] , C=0 , 6+2+0=8 , A->8 , C->0
[6] + [9] , A=[8,4] , C=0 , 6+9+0=15 , A->5 , C->1
[] + [] , A=[5,8,4] C=1 , END
</scratch>
1584
</s> | 1079 |
Input:
121+801
Target:
| Input:
782+710
Target:
<scratch>
[7,8,2] has 3 digits.
[7,1,0] has 3 digits.
[7,8,2] + [7,1,0] , A=[] , C=0 , 2+0+0=2 , A->2 , C->0
[7,8] + [7,1] , A=[2] , C=0 , 8+1+0=9 , A->9 , C->0
[7] + [7] , A=[9,2] , C=0 , 7+7+0=14 , A->4 , C->1
[] + [] , A=[4,9,2] C=1 , END
</scratch>
1492
</s> | 1358 |
Input:
439+640
Target:
| Input:
778+901
Target:
<scratch>
[7,7,8] has 3 digits.
[9,0,1] has 3 digits.
[7,7,8] + [9,0,1] , A=[] , C=0 , 8+1+0=9 , A->9 , C->0
[7,7] + [9,0] , A=[9] , C=0 , 7+0+0=7 , A->7 , C->0
[7] + [9] , A=[7,9] , C=0 , 7+9+0=16 , A->6 , C->1
[] + [] , A=[6,7,9] C=1 , END
</scratch>
1679
</s> | 758 |
Input:
439+704
Target:
| Input:
786+785
Target:
<scratch>
[7,8,6] has 3 digits.
[7,8,5] has 3 digits.
[7,8,6] + [7,8,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[7,8] + [7,8] , A=[1] , C=1 , 8+8+1=17 , A->7 , C->1
[7] + [7] , A=[7,1] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,7,1] C=1 , END
</scratch>
1571
</s> | 1115 |
Input:
213+933
Target:
| Input:
322+247
Target:
<scratch>
[3,2,2] has 3 digits.
[2,4,7] has 3 digits.
[3,2,2] + [2,4,7] , A=[] , C=0 , 2+7+0=9 , A->9 , C->0
[3,2] + [2,4] , A=[9] , C=0 , 2+4+0=6 , A->6 , C->0
[3] + [2] , A=[6,9] , C=0 , 3+2+0=5 , A->5 , C->0
[] + [] , A=[5,6,9] C=0 , END
</scratch>
569
</s> | 1461 |
Input:
223+395
Target:
| Input:
679+952
Target:
<scratch>
[6,7,9] has 3 digits.
[9,5,2] has 3 digits.
[6,7,9] + [9,5,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[6,7] + [9,5] , A=[1] , C=1 , 7+5+1=13 , A->3 , C->1
[6] + [9] , A=[3,1] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,3,1] C=1 , END
</scratch>
1631
</s> | 860 |
Input:
937+440
Target:
| Input:
511+423
Target:
<scratch>
[5,1,1] has 3 digits.
[4,2,3] has 3 digits.
[5,1,1] + [4,2,3] , A=[] , C=0 , 1+3+0=4 , A->4 , C->0
[5,1] + [4,2] , A=[4] , C=0 , 1+2+0=3 , A->3 , C->0
[5] + [4] , A=[3,4] , C=0 , 5+4+0=9 , A->9 , C->0
[] + [] , A=[9,3,4] C=0 , END
</scratch>
934
</s> | 1159 |
Input:
522+717
Target:
| Input:
231+955
Target:
<scratch>
[2,3,1] has 3 digits.
[9,5,5] has 3 digits.
[2,3,1] + [9,5,5] , A=[] , C=0 , 1+5+0=6 , A->6 , C->0
[2,3] + [9,5] , A=[6] , C=0 , 3+5+0=8 , A->8 , C->0
[2] + [9] , A=[8,6] , C=0 , 2+9+0=11 , A->1 , C->1
[] + [] , A=[1,8,6] C=1 , END
</scratch>
1186
</s> | 1509 |
Input:
749+290
Target:
| Input:
355+936
Target:
<scratch>
[3,5,5] has 3 digits.
[9,3,6] has 3 digits.
[3,5,5] + [9,3,6] , A=[] , C=0 , 5+6+0=11 , A->1 , C->1
[3,5] + [9,3] , A=[1] , C=1 , 5+3+1=9 , A->9 , C->0
[3] + [9] , A=[9,1] , C=0 , 3+9+0=12 , A->2 , C->1
[] + [] , A=[2,9,1] C=1 , END
</scratch>
1291
</s> | 987 |
Input:
662+409
Target:
| Input:
898+315
Target:
<scratch>
[8,9,8] has 3 digits.
[3,1,5] has 3 digits.
[8,9,8] + [3,1,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[8,9] + [3,1] , A=[3] , C=1 , 9+1+1=11 , A->1 , C->1
[8] + [3] , A=[1,3] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,1,3] C=1 , END
</scratch>
1213
</s> | 1349 |
Input:
443+963
Target:
| Input:
927+670
Target:
<scratch>
[9,2,7] has 3 digits.
[6,7,0] has 3 digits.
[9,2,7] + [6,7,0] , A=[] , C=0 , 7+0+0=7 , A->7 , C->0
[9,2] + [6,7] , A=[7] , C=0 , 2+7+0=9 , A->9 , C->0
[9] + [6] , A=[9,7] , C=0 , 9+6+0=15 , A->5 , C->1
[] + [] , A=[5,9,7] C=1 , END
</scratch>
1597
</s> | 1302 |
Input:
392+142
Target:
| Input:
445+710
Target:
<scratch>
[4,4,5] has 3 digits.
[7,1,0] has 3 digits.
[4,4,5] + [7,1,0] , A=[] , C=0 , 5+0+0=5 , A->5 , C->0
[4,4] + [7,1] , A=[5] , C=0 , 4+1+0=5 , A->5 , C->0
[4] + [7] , A=[5,5] , C=0 , 4+7+0=11 , A->1 , C->1
[] + [] , A=[1,5,5] C=1 , END
</scratch>
1155
</s> | 951 |
Input:
415+583
Target:
| Input:
322+100
Target:
<scratch>
[3,2,2] has 3 digits.
[1,0,0] has 3 digits.
[3,2,2] + [1,0,0] , A=[] , C=0 , 2+0+0=2 , A->2 , C->0
[3,2] + [1,0] , A=[2] , C=0 , 2+0+0=2 , A->2 , C->0
[3] + [1] , A=[2,2] , C=0 , 3+1+0=4 , A->4 , C->0
[] + [] , A=[4,2,2] C=0 , END
</scratch>
422
</s> | 1354 |
Input:
423+587
Target:
| Input:
926+855
Target:
<scratch>
[9,2,6] has 3 digits.
[8,5,5] has 3 digits.
[9,2,6] + [8,5,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[9,2] + [8,5] , A=[1] , C=1 , 2+5+1=8 , A->8 , C->0
[9] + [8] , A=[8,1] , C=0 , 9+8+0=17 , A->7 , C->1
[] + [] , A=[7,8,1] C=1 , END
</scratch>
1781
</s> | 1318 |
Input:
994+359
Target:
| Input:
562+473
Target:
<scratch>
[5,6,2] has 3 digits.
[4,7,3] has 3 digits.
[5,6,2] + [4,7,3] , A=[] , C=0 , 2+3+0=5 , A->5 , C->0
[5,6] + [4,7] , A=[5] , C=0 , 6+7+0=13 , A->3 , C->1
[5] + [4] , A=[3,5] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,3,5] C=1 , END
</scratch>
1035
</s> | 921 |
Input:
671+396
Target:
| Input:
575+460
Target:
<scratch>
[5,7,5] has 3 digits.
[4,6,0] has 3 digits.
[5,7,5] + [4,6,0] , A=[] , C=0 , 5+0+0=5 , A->5 , C->0
[5,7] + [4,6] , A=[5] , C=0 , 7+6+0=13 , A->3 , C->1
[5] + [4] , A=[3,5] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,3,5] C=1 , END
</scratch>
1035
</s> | 1068 |
Input:
656+382
Target:
| Input:
293+798
Target:
<scratch>
[2,9,3] has 3 digits.
[7,9,8] has 3 digits.
[2,9,3] + [7,9,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[2,9] + [7,9] , A=[1] , C=1 , 9+9+1=19 , A->9 , C->1
[2] + [7] , A=[9,1] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,9,1] C=1 , END
</scratch>
1091
</s> | 816 |
Input:
434+365
Target:
| Input:
123+560
Target:
<scratch>
[1,2,3] has 3 digits.
[5,6,0] has 3 digits.
[1,2,3] + [5,6,0] , A=[] , C=0 , 3+0+0=3 , A->3 , C->0
[1,2] + [5,6] , A=[3] , C=0 , 2+6+0=8 , A->8 , C->0
[1] + [5] , A=[8,3] , C=0 , 1+5+0=6 , A->6 , C->0
[] + [] , A=[6,8,3] C=0 , END
</scratch>
683
</s> | 327 |
Input:
268+955
Target:
| Input:
401+570
Target:
<scratch>
[4,0,1] has 3 digits.
[5,7,0] has 3 digits.
[4,0,1] + [5,7,0] , A=[] , C=0 , 1+0+0=1 , A->1 , C->0
[4,0] + [5,7] , A=[1] , C=0 , 0+7+0=7 , A->7 , C->0
[4] + [5] , A=[7,1] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,7,1] C=0 , END
</scratch>
971
</s> | 931 |
Input:
686+110
Target:
| Input:
102+204
Target:
<scratch>
[1,0,2] has 3 digits.
[2,0,4] has 3 digits.
[1,0,2] + [2,0,4] , A=[] , C=0 , 2+4+0=6 , A->6 , C->0
[1,0] + [2,0] , A=[6] , C=0 , 0+0+0=0 , A->0 , C->0
[1] + [2] , A=[0,6] , C=0 , 1+2+0=3 , A->3 , C->0
[] + [] , A=[3,0,6] C=0 , END
</scratch>
306
</s> | 1626 |
Input:
242+357
Target:
| Input:
532+720
Target:
<scratch>
[5,3,2] has 3 digits.
[7,2,0] has 3 digits.
[5,3,2] + [7,2,0] , A=[] , C=0 , 2+0+0=2 , A->2 , C->0
[5,3] + [7,2] , A=[2] , C=0 , 3+2+0=5 , A->5 , C->0
[5] + [7] , A=[5,2] , C=0 , 5+7+0=12 , A->2 , C->1
[] + [] , A=[2,5,2] C=1 , END
</scratch>
1252
</s> | 1258 |
Input:
900+347
Target:
| Input:
111+627
Target:
<scratch>
[1,1,1] has 3 digits.
[6,2,7] has 3 digits.
[1,1,1] + [6,2,7] , A=[] , C=0 , 1+7+0=8 , A->8 , C->0
[1,1] + [6,2] , A=[8] , C=0 , 1+2+0=3 , A->3 , C->0
[1] + [6] , A=[3,8] , C=0 , 1+6+0=7 , A->7 , C->0
[] + [] , A=[7,3,8] C=0 , END
</scratch>
738
</s> | 1841 |
Input:
467+690
Target:
| Input:
855+410
Target:
<scratch>
[8,5,5] has 3 digits.
[4,1,0] has 3 digits.
[8,5,5] + [4,1,0] , A=[] , C=0 , 5+0+0=5 , A->5 , C->0
[8,5] + [4,1] , A=[5] , C=0 , 5+1+0=6 , A->6 , C->0
[8] + [4] , A=[6,5] , C=0 , 8+4+0=12 , A->2 , C->1
[] + [] , A=[2,6,5] C=1 , END
</scratch>
1265
</s> | 1239 |
Input:
516+673
Target:
| Input:
402+924
Target:
<scratch>
[4,0,2] has 3 digits.
[9,2,4] has 3 digits.
[4,0,2] + [9,2,4] , A=[] , C=0 , 2+4+0=6 , A->6 , C->0
[4,0] + [9,2] , A=[6] , C=0 , 0+2+0=2 , A->2 , C->0
[4] + [9] , A=[2,6] , C=0 , 4+9+0=13 , A->3 , C->1
[] + [] , A=[3,2,6] C=1 , END
</scratch>
1326
</s> | 1040 |
Input:
787+757
Target:
| Input:
879+471
Target:
<scratch>
[8,7,9] has 3 digits.
[4,7,1] has 3 digits.
[8,7,9] + [4,7,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[8,7] + [4,7] , A=[0] , C=1 , 7+7+1=15 , A->5 , C->1
[8] + [4] , A=[5,0] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,5,0] C=1 , END
</scratch>
1350
</s> | 1927 |
Input:
445+959
Target:
| Input:
774+925
Target:
<scratch>
[7,7,4] has 3 digits.
[9,2,5] has 3 digits.
[7,7,4] + [9,2,5] , A=[] , C=0 , 4+5+0=9 , A->9 , C->0
[7,7] + [9,2] , A=[9] , C=0 , 7+2+0=9 , A->9 , C->0
[7] + [9] , A=[9,9] , C=0 , 7+9+0=16 , A->6 , C->1
[] + [] , A=[6,9,9] C=1 , END
</scratch>
1699
</s> | 1879 |
Input:
610+631
Target:
| Input:
468+737
Target:
<scratch>
[4,6,8] has 3 digits.
[7,3,7] has 3 digits.
[4,6,8] + [7,3,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[4,6] + [7,3] , A=[5] , C=1 , 6+3+1=10 , A->0 , C->1
[4] + [7] , A=[0,5] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,0,5] C=1 , END
</scratch>
1205
</s> | 1014 |
Input:
839+676
Target:
| Input:
309+620
Target:
<scratch>
[3,0,9] has 3 digits.
[6,2,0] has 3 digits.
[3,0,9] + [6,2,0] , A=[] , C=0 , 9+0+0=9 , A->9 , C->0
[3,0] + [6,2] , A=[9] , C=0 , 0+2+0=2 , A->2 , C->0
[3] + [6] , A=[2,9] , C=0 , 3+6+0=9 , A->9 , C->0
[] + [] , A=[9,2,9] C=0 , END
</scratch>
929
</s> | 498 |
Input:
261+840
Target:
| Input:
231+195
Target:
<scratch>
[2,3,1] has 3 digits.
[1,9,5] has 3 digits.
[2,3,1] + [1,9,5] , A=[] , C=0 , 1+5+0=6 , A->6 , C->0
[2,3] + [1,9] , A=[6] , C=0 , 3+9+0=12 , A->2 , C->1
[2] + [1] , A=[2,6] , C=1 , 2+1+1=4 , A->4 , C->0
[] + [] , A=[4,2,6] C=0 , END
</scratch>
426
</s> | 1179 |
Input:
879+253
Target:
| Input:
510+683
Target:
<scratch>
[5,1,0] has 3 digits.
[6,8,3] has 3 digits.
[5,1,0] + [6,8,3] , A=[] , C=0 , 0+3+0=3 , A->3 , C->0
[5,1] + [6,8] , A=[3] , C=0 , 1+8+0=9 , A->9 , C->0
[5] + [6] , A=[9,3] , C=0 , 5+6+0=11 , A->1 , C->1
[] + [] , A=[1,9,3] C=1 , END
</scratch>
1193
</s> | 986 |
Input:
910+907
Target:
| Input:
773+195
Target:
<scratch>
[7,7,3] has 3 digits.
[1,9,5] has 3 digits.
[7,7,3] + [1,9,5] , A=[] , C=0 , 3+5+0=8 , A->8 , C->0
[7,7] + [1,9] , A=[8] , C=0 , 7+9+0=16 , A->6 , C->1
[7] + [1] , A=[6,8] , C=1 , 7+1+1=9 , A->9 , C->0
[] + [] , A=[9,6,8] C=0 , END
</scratch>
968
</s> | 757 |
Input:
693+420
Target:
| Input:
951+218
Target:
<scratch>
[9,5,1] has 3 digits.
[2,1,8] has 3 digits.
[9,5,1] + [2,1,8] , A=[] , C=0 , 1+8+0=9 , A->9 , C->0
[9,5] + [2,1] , A=[9] , C=0 , 5+1+0=6 , A->6 , C->0
[9] + [2] , A=[6,9] , C=0 , 9+2+0=11 , A->1 , C->1
[] + [] , A=[1,6,9] C=1 , END
</scratch>
1169
</s> | 1009 |
Input:
221+721
Target:
| Input:
104+861
Target:
<scratch>
[1,0,4] has 3 digits.
[8,6,1] has 3 digits.
[1,0,4] + [8,6,1] , A=[] , C=0 , 4+1+0=5 , A->5 , C->0
[1,0] + [8,6] , A=[5] , C=0 , 0+6+0=6 , A->6 , C->0
[1] + [8] , A=[6,5] , C=0 , 1+8+0=9 , A->9 , C->0
[] + [] , A=[9,6,5] C=0 , END
</scratch>
965
</s> | 1182 |
Input:
965+484
Target:
| Input:
583+893
Target:
<scratch>
[5,8,3] has 3 digits.
[8,9,3] has 3 digits.
[5,8,3] + [8,9,3] , A=[] , C=0 , 3+3+0=6 , A->6 , C->0
[5,8] + [8,9] , A=[6] , C=0 , 8+9+0=17 , A->7 , C->1
[5] + [8] , A=[7,6] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,7,6] C=1 , END
</scratch>
1476
</s> | 599 |
Input:
817+489
Target:
| Input:
239+873
Target:
<scratch>
[2,3,9] has 3 digits.
[8,7,3] has 3 digits.
[2,3,9] + [8,7,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[2,3] + [8,7] , A=[2] , C=1 , 3+7+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
</s> | 770 |
Input:
943+746
Target:
| Input:
777+938
Target:
<scratch>
[7,7,7] has 3 digits.
[9,3,8] has 3 digits.
[7,7,7] + [9,3,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[7,7] + [9,3] , A=[5] , C=1 , 7+3+1=11 , A->1 , C->1
[7] + [9] , A=[1,5] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,1,5] C=1 , END
</scratch>
1715
</s> | 452 |
Input:
889+441
Target:
| Input:
519+789
Target:
<scratch>
[5,1,9] has 3 digits.
[7,8,9] has 3 digits.
[5,1,9] + [7,8,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[5,1] + [7,8] , A=[8] , C=1 , 1+8+1=10 , A->0 , C->1
[5] + [7] , A=[0,8] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,0,8] C=1 , END
</scratch>
1308
</s> | 507 |
Input:
574+669
Target:
| Input:
184+643
Target:
<scratch>
[1,8,4] has 3 digits.
[6,4,3] has 3 digits.
[1,8,4] + [6,4,3] , A=[] , C=0 , 4+3+0=7 , A->7 , C->0
[1,8] + [6,4] , A=[7] , C=0 , 8+4+0=12 , A->2 , C->1
[1] + [6] , A=[2,7] , C=1 , 1+6+1=8 , A->8 , C->0
[] + [] , A=[8,2,7] C=0 , END
</scratch>
827
</s> | 492 |
Input:
304+496
Target:
| Input:
882+648
Target:
<scratch>
[8,8,2] has 3 digits.
[6,4,8] has 3 digits.
[8,8,2] + [6,4,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[8,8] + [6,4] , A=[0] , C=1 , 8+4+1=13 , A->3 , C->1
[8] + [6] , A=[3,0] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,3,0] C=1 , END
</scratch>
1530
</s> | 1381 |
Input:
380+213
Target:
| Input:
610+733
Target:
<scratch>
[6,1,0] has 3 digits.
[7,3,3] has 3 digits.
[6,1,0] + [7,3,3] , A=[] , C=0 , 0+3+0=3 , A->3 , C->0
[6,1] + [7,3] , A=[3] , C=0 , 1+3+0=4 , A->4 , C->0
[6] + [7] , A=[4,3] , C=0 , 6+7+0=13 , A->3 , C->1
[] + [] , A=[3,4,3] C=1 , END
</scratch>
1343
</s> | 1731 |
Input:
324+641
Target:
| Input:
275+188
Target:
<scratch>
[2,7,5] has 3 digits.
[1,8,8] has 3 digits.
[2,7,5] + [1,8,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[2,7] + [1,8] , A=[3] , C=1 , 7+8+1=16 , A->6 , C->1
[2] + [1] , A=[6,3] , C=1 , 2+1+1=4 , A->4 , C->0
[] + [] , A=[4,6,3] C=0 , END
</scratch>
463
</s> | 717 |
Input:
922+322
Target:
| Input:
304+895
Target:
<scratch>
[3,0,4] has 3 digits.
[8,9,5] has 3 digits.
[3,0,4] + [8,9,5] , A=[] , C=0 , 4+5+0=9 , A->9 , C->0
[3,0] + [8,9] , A=[9] , C=0 , 0+9+0=9 , A->9 , C->0
[3] + [8] , A=[9,9] , C=0 , 3+8+0=11 , A->1 , C->1
[] + [] , A=[1,9,9] C=1 , END
</scratch>
1199
</s> | 1447 |
Input:
106+268
Target:
| Input:
820+931
Target:
<scratch>
[8,2,0] has 3 digits.
[9,3,1] has 3 digits.
[8,2,0] + [9,3,1] , A=[] , C=0 , 0+1+0=1 , A->1 , C->0
[8,2] + [9,3] , A=[1] , C=0 , 2+3+0=5 , A->5 , C->0
[8] + [9] , A=[5,1] , C=0 , 8+9+0=17 , A->7 , C->1
[] + [] , A=[7,5,1] C=1 , END
</scratch>
1751
</s> | 1430 |
Input:
107+665
Target:
| Input:
390+205
Target:
<scratch>
[3,9,0] has 3 digits.
[2,0,5] has 3 digits.
[3,9,0] + [2,0,5] , A=[] , C=0 , 0+5+0=5 , A->5 , C->0
[3,9] + [2,0] , A=[5] , C=0 , 9+0+0=9 , A->9 , C->0
[3] + [2] , A=[9,5] , C=0 , 3+2+0=5 , A->5 , C->0
[] + [] , A=[5,9,5] C=0 , END
</scratch>
595
</s> | 1417 |
Input:
524+178
Target:
| Input:
622+206
Target:
<scratch>
[6,2,2] has 3 digits.
[2,0,6] has 3 digits.
[6,2,2] + [2,0,6] , A=[] , C=0 , 2+6+0=8 , A->8 , C->0
[6,2] + [2,0] , A=[8] , C=0 , 2+0+0=2 , A->2 , C->0
[6] + [2] , A=[2,8] , C=0 , 6+2+0=8 , A->8 , C->0
[] + [] , A=[8,2,8] C=0 , END
</scratch>
828
</s> | 679 |
Input:
756+353
Target:
| Input:
474+376
Target:
<scratch>
[4,7,4] has 3 digits.
[3,7,6] has 3 digits.
[4,7,4] + [3,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[4,7] + [3,7] , A=[0] , C=1 , 7+7+1=15 , A->5 , C->1
[4] + [3] , A=[5,0] , C=1 , 4+3+1=8 , A->8 , C->0
[] + [] , A=[8,5,0] C=0 , END
</scratch>
850
</s> | 1325 |
Input:
885+338
Target:
| Input:
557+548
Target:
<scratch>
[5,5,7] has 3 digits.
[5,4,8] has 3 digits.
[5,5,7] + [5,4,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[5,5] + [5,4] , A=[5] , C=1 , 5+4+1=10 , A->0 , C->1
[5] + [5] , A=[0,5] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,0,5] C=1 , END
</scratch>
1105
</s> | 864 |
Input:
378+485
Target:
| Input:
557+744
Target:
<scratch>
[5,5,7] has 3 digits.
[7,4,4] has 3 digits.
[5,5,7] + [7,4,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[5,5] + [7,4] , A=[1] , C=1 , 5+4+1=10 , A->0 , C->1
[5] + [7] , A=[0,1] , C=1 , 5+7+1=13 , A->3 , C->1
[] + [] , A=[3,0,1] C=1 , END
</scratch>
1301
</s> | 1177 |
Input:
460+644
Target:
| Input:
571+121
Target:
<scratch>
[5,7,1] has 3 digits.
[1,2,1] has 3 digits.
[5,7,1] + [1,2,1] , A=[] , C=0 , 1+1+0=2 , A->2 , C->0
[5,7] + [1,2] , A=[2] , C=0 , 7+2+0=9 , A->9 , C->0
[5] + [1] , A=[9,2] , C=0 , 5+1+0=6 , A->6 , C->0
[] + [] , A=[6,9,2] C=0 , END
</scratch>
692
</s> | 789 |
Input:
480+940
Target:
| Input:
589+592
Target:
<scratch>
[5,8,9] has 3 digits.
[5,9,2] has 3 digits.
[5,8,9] + [5,9,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[5,8] + [5,9] , A=[1] , C=1 , 8+9+1=18 , A->8 , C->1
[5] + [5] , A=[8,1] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,8,1] C=1 , END
</scratch>
1181
</s> | 1640 |
Input:
889+215
Target:
| Input:
644+258
Target:
<scratch>
[6,4,4] has 3 digits.
[2,5,8] has 3 digits.
[6,4,4] + [2,5,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[6,4] + [2,5] , A=[2] , C=1 , 4+5+1=10 , A->0 , C->1
[6] + [2] , A=[0,2] , C=1 , 6+2+1=9 , A->9 , C->0
[] + [] , A=[9,0,2] C=0 , END
</scratch>
902
</s> | 1161 |
Input:
498+612
Target:
| Input:
187+218
Target:
<scratch>
[1,8,7] has 3 digits.
[2,1,8] has 3 digits.
[1,8,7] + [2,1,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[1,8] + [2,1] , A=[5] , C=1 , 8+1+1=10 , A->0 , C->1
[1] + [2] , A=[0,5] , C=1 , 1+2+1=4 , A->4 , C->0
[] + [] , A=[4,0,5] C=0 , END
</scratch>
405
</s> | 952 |
Input:
690+490
Target:
| Input:
799+241
Target:
<scratch>
[7,9,9] has 3 digits.
[2,4,1] has 3 digits.
[7,9,9] + [2,4,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[7,9] + [2,4] , A=[0] , C=1 , 9+4+1=14 , A->4 , C->1
[7] + [2] , A=[4,0] , C=1 , 7+2+1=10 , A->0 , C->1
[] + [] , A=[0,4,0] C=1 , END
</scratch>
1040
</s> | 1071 |
Input:
743+120
Target:
| Input:
659+422
Target:
<scratch>
[6,5,9] has 3 digits.
[4,2,2] has 3 digits.
[6,5,9] + [4,2,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[6,5] + [4,2] , A=[1] , C=1 , 5+2+1=8 , A->8 , C->0
[6] + [4] , A=[8,1] , C=0 , 6+4+0=10 , A->0 , C->1
[] + [] , A=[0,8,1] C=1 , END
</scratch>
1081
</s> | 1752 |
Input:
803+801
Target:
| Input:
506+707
Target:
<scratch>
[5,0,6] has 3 digits.
[7,0,7] has 3 digits.
[5,0,6] + [7,0,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[5,0] + [7,0] , A=[3] , C=1 , 0+0+1=1 , A->1 , C->0
[5] + [7] , A=[1,3] , C=0 , 5+7+0=12 , A->2 , C->1
[] + [] , A=[2,1,3] C=1 , END
</scratch>
1213
</s> | 867 |
Input:
851+391
Target:
| Input:
681+486
Target:
<scratch>
[6,8,1] has 3 digits.
[4,8,6] has 3 digits.
[6,8,1] + [4,8,6] , A=[] , C=0 , 1+6+0=7 , A->7 , C->0
[6,8] + [4,8] , A=[7] , C=0 , 8+8+0=16 , A->6 , C->1
[6] + [4] , A=[6,7] , C=1 , 6+4+1=11 , A->1 , C->1
[] + [] , A=[1,6,7] C=1 , END
</scratch>
1167
</s> | 1265 |
Input:
994+253
Target:
| Input:
487+652
Target:
<scratch>
[4,8,7] has 3 digits.
[6,5,2] has 3 digits.
[4,8,7] + [6,5,2] , A=[] , C=0 , 7+2+0=9 , A->9 , C->0
[4,8] + [6,5] , A=[9] , C=0 , 8+5+0=13 , A->3 , C->1
[4] + [6] , A=[3,9] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,3,9] C=1 , END
</scratch>
1139
</s> | 863 |
Input:
982+456
Target:
| Input:
528+968
Target:
<scratch>
[5,2,8] has 3 digits.
[9,6,8] has 3 digits.
[5,2,8] + [9,6,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[5,2] + [9,6] , A=[6] , C=1 , 2+6+1=9 , A->9 , C->0
[5] + [9] , A=[9,6] , C=0 , 5+9+0=14 , A->4 , C->1
[] + [] , A=[4,9,6] C=1 , END
</scratch>
1496
</s> | 1647 |
Input:
701+950
Target:
| Input:
273+878
Target:
<scratch>
[2,7,3] has 3 digits.
[8,7,8] has 3 digits.
[2,7,3] + [8,7,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[2,7] + [8,7] , A=[1] , C=1 , 7+7+1=15 , A->5 , C->1
[2] + [8] , A=[5,1] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,5,1] C=1 , END
</scratch>
1151
</s> | 1432 |
Input:
595+589
Target:
| Input:
779+840
Target:
<scratch>
[7,7,9] has 3 digits.
[8,4,0] has 3 digits.
[7,7,9] + [8,4,0] , A=[] , C=0 , 9+0+0=9 , A->9 , C->0
[7,7] + [8,4] , A=[9] , C=0 , 7+4+0=11 , A->1 , C->1
[7] + [8] , A=[1,9] , C=1 , 7+8+1=16 , A->6 , C->1
[] + [] , A=[6,1,9] C=1 , END
</scratch>
1619
</s> | 1402 |
Input:
210+502
Target:
| Input:
151+703
Target:
<scratch>
[1,5,1] has 3 digits.
[7,0,3] has 3 digits.
[1,5,1] + [7,0,3] , A=[] , C=0 , 1+3+0=4 , A->4 , C->0
[1,5] + [7,0] , A=[4] , C=0 , 5+0+0=5 , A->5 , C->0
[1] + [7] , A=[5,4] , C=0 , 1+7+0=8 , A->8 , C->0
[] + [] , A=[8,5,4] C=0 , END
</scratch>
854
</s> | 1348 |
Input:
603+841
Target:
| Input:
626+724
Target:
<scratch>
[6,2,6] has 3 digits.
[7,2,4] has 3 digits.
[6,2,6] + [7,2,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[6,2] + [7,2] , A=[0] , C=1 , 2+2+1=5 , A->5 , C->0
[6] + [7] , A=[5,0] , C=0 , 6+7+0=13 , A->3 , C->1
[] + [] , A=[3,5,0] C=1 , END
</scratch>
1350
</s> | 762 |
Input:
928+238
Target:
| Input:
354+344
Target:
<scratch>
[3,5,4] has 3 digits.
[3,4,4] has 3 digits.
[3,5,4] + [3,4,4] , A=[] , C=0 , 4+4+0=8 , A->8 , C->0
[3,5] + [3,4] , A=[8] , C=0 , 5+4+0=9 , A->9 , C->0
[3] + [3] , A=[9,8] , C=0 , 3+3+0=6 , A->6 , C->0
[] + [] , A=[6,9,8] C=0 , END
</scratch>
698
</s> | 1541 |
Input:
385+413
Target:
| Input:
310+372
Target:
<scratch>
[3,1,0] has 3 digits.
[3,7,2] has 3 digits.
[3,1,0] + [3,7,2] , A=[] , C=0 , 0+2+0=2 , A->2 , C->0
[3,1] + [3,7] , A=[2] , C=0 , 1+7+0=8 , A->8 , C->0
[3] + [3] , A=[8,2] , C=0 , 3+3+0=6 , A->6 , C->0
[] + [] , A=[6,8,2] C=0 , END
</scratch>
682
</s> | 1533 |
Input:
992+686
Target:
| Input:
288+476
Target:
<scratch>
[2,8,8] has 3 digits.
[4,7,6] has 3 digits.
[2,8,8] + [4,7,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[2,8] + [4,7] , A=[4] , C=1 , 8+7+1=16 , A->6 , C->1
[2] + [4] , A=[6,4] , C=1 , 2+4+1=7 , A->7 , C->0
[] + [] , A=[7,6,4] C=0 , END
</scratch>
764
</s> | 623 |
Input:
853+820
Target:
| Input:
264+100
Target:
<scratch>
[2,6,4] has 3 digits.
[1,0,0] has 3 digits.
[2,6,4] + [1,0,0] , A=[] , C=0 , 4+0+0=4 , A->4 , C->0
[2,6] + [1,0] , A=[4] , C=0 , 6+0+0=6 , A->6 , C->0
[2] + [1] , A=[6,4] , C=0 , 2+1+0=3 , A->3 , C->0
[] + [] , A=[3,6,4] C=0 , END
</scratch>
364
</s> | 1544 |
Input:
246+618
Target:
| Input:
586+815
Target:
<scratch>
[5,8,6] has 3 digits.
[8,1,5] has 3 digits.
[5,8,6] + [8,1,5] , A=[] , C=0 , 6+5+0=11 , A->1 , C->1
[5,8] + [8,1] , A=[1] , C=1 , 8+1+1=10 , A->0 , C->1
[5] + [8] , A=[0,1] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,0,1] C=1 , END
</scratch>
1401
</s> | 1304 |
Input:
395+665
Target:
| Input:
538+805
Target:
<scratch>
[5,3,8] has 3 digits.
[8,0,5] has 3 digits.
[5,3,8] + [8,0,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[5,3] + [8,0] , A=[3] , C=1 , 3+0+1=4 , A->4 , C->0
[5] + [8] , A=[4,3] , C=0 , 5+8+0=13 , A->3 , C->1
[] + [] , A=[3,4,3] C=1 , END
</scratch>
1343
</s> | 785 |
Input:
883+225
Target:
| Input:
441+720
Target:
<scratch>
[4,4,1] has 3 digits.
[7,2,0] has 3 digits.
[4,4,1] + [7,2,0] , A=[] , C=0 , 1+0+0=1 , A->1 , C->0
[4,4] + [7,2] , A=[1] , C=0 , 4+2+0=6 , A->6 , C->0
[4] + [7] , A=[6,1] , C=0 , 4+7+0=11 , A->1 , C->1
[] + [] , A=[1,6,1] C=1 , END
</scratch>
1161
</s> | 972 |
Input:
349+565
Target:
| Input:
613+812
Target:
<scratch>
[6,1,3] has 3 digits.
[8,1,2] has 3 digits.
[6,1,3] + [8,1,2] , A=[] , C=0 , 3+2+0=5 , A->5 , C->0
[6,1] + [8,1] , A=[5] , C=0 , 1+1+0=2 , A->2 , C->0
[6] + [8] , A=[2,5] , C=0 , 6+8+0=14 , A->4 , C->1
[] + [] , A=[4,2,5] C=1 , END
</scratch>
1425
</s> | 1221 |
Input:
554+306
Target:
| Input:
895+269
Target:
<scratch>
[8,9,5] has 3 digits.
[2,6,9] has 3 digits.
[8,9,5] + [2,6,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[8,9] + [2,6] , A=[4] , C=1 , 9+6+1=16 , A->6 , C->1
[8] + [2] , A=[6,4] , C=1 , 8+2+1=11 , A->1 , C->1
[] + [] , A=[1,6,4] C=1 , END
</scratch>
1164
</s> | 949 |
Input:
784+794
Target:
| Input:
430+504
Target:
<scratch>
[4,3,0] has 3 digits.
[5,0,4] has 3 digits.
[4,3,0] + [5,0,4] , A=[] , C=0 , 0+4+0=4 , A->4 , C->0
[4,3] + [5,0] , A=[4] , C=0 , 3+0+0=3 , A->3 , C->0
[4] + [5] , A=[3,4] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,3,4] C=0 , END
</scratch>
934
</s> | 1679 |
Input:
274+143
Target:
| Input:
978+234
Target:
<scratch>
[9,7,8] has 3 digits.
[2,3,4] has 3 digits.
[9,7,8] + [2,3,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[9,7] + [2,3] , A=[2] , C=1 , 7+3+1=11 , A->1 , C->1
[9] + [2] , A=[1,2] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,1,2] C=1 , END
</scratch>
1212
</s> | 861 |
Input:
984+516
Target:
| Input:
686+183
Target:
<scratch>
[6,8,6] has 3 digits.
[1,8,3] has 3 digits.
[6,8,6] + [1,8,3] , A=[] , C=0 , 6+3+0=9 , A->9 , C->0
[6,8] + [1,8] , A=[9] , C=0 , 8+8+0=16 , A->6 , C->1
[6] + [1] , A=[6,9] , C=1 , 6+1+1=8 , A->8 , C->0
[] + [] , A=[8,6,9] C=0 , END
</scratch>
869
</s> | 850 |
Input:
228+281
Target:
| Input:
354+355
Target:
<scratch>
[3,5,4] has 3 digits.
[3,5,5] has 3 digits.
[3,5,4] + [3,5,5] , A=[] , C=0 , 4+5+0=9 , A->9 , C->0
[3,5] + [3,5] , A=[9] , C=0 , 5+5+0=10 , A->0 , C->1
[3] + [3] , A=[0,9] , C=1 , 3+3+1=7 , A->7 , C->0
[] + [] , A=[7,0,9] C=0 , END
</scratch>
709
</s> | 533 |
Input:
418+719
Target:
| Input:
687+100
Target:
<scratch>
[6,8,7] has 3 digits.
[1,0,0] has 3 digits.
[6,8,7] + [1,0,0] , A=[] , C=0 , 7+0+0=7 , A->7 , C->0
[6,8] + [1,0] , A=[7] , C=0 , 8+0+0=8 , A->8 , C->0
[6] + [1] , A=[8,7] , C=0 , 6+1+0=7 , A->7 , C->0
[] + [] , A=[7,8,7] C=0 , END
</scratch>
787
</s> | 1252 |
Input:
596+276
Target:
| Input:
364+822
Target:
<scratch>
[3,6,4] has 3 digits.
[8,2,2] has 3 digits.
[3,6,4] + [8,2,2] , A=[] , C=0 , 4+2+0=6 , A->6 , C->0
[3,6] + [8,2] , A=[6] , C=0 , 6+2+0=8 , A->8 , C->0
[3] + [8] , A=[8,6] , C=0 , 3+8+0=11 , A->1 , C->1
[] + [] , A=[1,8,6] C=1 , END
</scratch>
1186
</s> | 1159 |
Input:
884+553
Target:
| Input:
219+158
Target:
<scratch>
[2,1,9] has 3 digits.
[1,5,8] has 3 digits.
[2,1,9] + [1,5,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[2,1] + [1,5] , A=[7] , C=1 , 1+5+1=7 , A->7 , C->0
[2] + [1] , A=[7,7] , C=0 , 2+1+0=3 , A->3 , C->0
[] + [] , A=[3,7,7] C=0 , END
</scratch>
377
</s> | 1101 |
Input:
530+298
Target:
| Input:
684+707
Target:
<scratch>
[6,8,4] has 3 digits.
[7,0,7] has 3 digits.
[6,8,4] + [7,0,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[6,8] + [7,0] , A=[1] , C=1 , 8+0+1=9 , A->9 , C->0
[6] + [7] , A=[9,1] , C=0 , 6+7+0=13 , A->3 , C->1
[] + [] , A=[3,9,1] C=1 , END
</scratch>
1391
</s> | 1074 |
Input:
524+515
Target:
| Input:
483+815
Target:
<scratch>
[4,8,3] has 3 digits.
[8,1,5] has 3 digits.
[4,8,3] + [8,1,5] , A=[] , C=0 , 3+5+0=8 , A->8 , C->0
[4,8] + [8,1] , A=[8] , C=0 , 8+1+0=9 , A->9 , C->0
[4] + [8] , A=[9,8] , C=0 , 4+8+0=12 , A->2 , C->1
[] + [] , A=[2,9,8] C=1 , END
</scratch>
1298
</s> | 660 |
Input:
983+412
Target:
| Input:
402+691
Target:
<scratch>
[4,0,2] has 3 digits.
[6,9,1] has 3 digits.
[4,0,2] + [6,9,1] , A=[] , C=0 , 2+1+0=3 , A->3 , C->0
[4,0] + [6,9] , A=[3] , C=0 , 0+9+0=9 , A->9 , C->0
[4] + [6] , A=[9,3] , C=0 , 4+6+0=10 , A->0 , C->1
[] + [] , A=[0,9,3] C=1 , END
</scratch>
1093
</s> | 1228 |
Input:
337+646
Target:
| Input:
782+487
Target:
<scratch>
[7,8,2] has 3 digits.
[4,8,7] has 3 digits.
[7,8,2] + [4,8,7] , A=[] , C=0 , 2+7+0=9 , A->9 , C->0
[7,8] + [4,8] , A=[9] , C=0 , 8+8+0=16 , A->6 , C->1
[7] + [4] , A=[6,9] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,6,9] C=1 , END
</scratch>
1269
</s> | 969 |
Input:
222+471
Target:
| Input:
243+744
Target:
<scratch>
[2,4,3] has 3 digits.
[7,4,4] has 3 digits.
[2,4,3] + [7,4,4] , A=[] , C=0 , 3+4+0=7 , A->7 , C->0
[2,4] + [7,4] , A=[7] , C=0 , 4+4+0=8 , A->8 , C->0
[2] + [7] , A=[8,7] , C=0 , 2+7+0=9 , A->9 , C->0
[] + [] , A=[9,8,7] C=0 , END
</scratch>
987
</s> | 1130 |
Input:
317+162
Target:
| Input:
297+842
Target:
<scratch>
[2,9,7] has 3 digits.
[8,4,2] has 3 digits.
[2,9,7] + [8,4,2] , A=[] , C=0 , 7+2+0=9 , A->9 , C->0
[2,9] + [8,4] , A=[9] , C=0 , 9+4+0=13 , A->3 , C->1
[2] + [8] , A=[3,9] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,3,9] C=1 , END
</scratch>
1139
</s> | 1547 |
Input:
902+793
Target:
| Input:
241+528
Target:
<scratch>
[2,4,1] has 3 digits.
[5,2,8] has 3 digits.
[2,4,1] + [5,2,8] , A=[] , C=0 , 1+8+0=9 , A->9 , C->0
[2,4] + [5,2] , A=[9] , C=0 , 4+2+0=6 , A->6 , C->0
[2] + [5] , A=[6,9] , C=0 , 2+5+0=7 , A->7 , C->0
[] + [] , A=[7,6,9] C=0 , END
</scratch>
769
</s> | 844 |
Input:
603+489
Target:
| Input:
999+221
Target:
<scratch>
[9,9,9] has 3 digits.
[2,2,1] has 3 digits.
[9,9,9] + [2,2,1] , A=[] , C=0 , 9+1+0=10 , A->0 , C->1
[9,9] + [2,2] , A=[0] , C=1 , 9+2+1=12 , A->2 , C->1
[9] + [2] , A=[2,0] , C=1 , 9+2+1=12 , A->2 , C->1
[] + [] , A=[2,2,0] C=1 , END
</scratch>
1220
</s> | 654 |
Input:
920+660
Target:
| Input:
565+517
Target:
<scratch>
[5,6,5] has 3 digits.
[5,1,7] has 3 digits.
[5,6,5] + [5,1,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[5,6] + [5,1] , A=[2] , C=1 , 6+1+1=8 , A->8 , C->0
[5] + [5] , A=[8,2] , C=0 , 5+5+0=10 , A->0 , C->1
[] + [] , A=[0,8,2] C=1 , END
</scratch>
1082
</s> | 1170 |