input_test
stringlengths 23
23
| scratchpad
stringlengths 283
287
| result_final
stringlengths 3
4
|
---|---|---|
Input:
666+478
Target:
| Input:
873+674
Target:
<scratch>
[8,7,3] has 3 digits.
[6,7,4] has 3 digits.
[8,7,3] + [6,7,4] , A=[] , C=0 , 3+4+0=7 , A->7 , C->0
[8,7] + [6,7] , A=[7] , C=0 , 7+7+0=14 , A->4 , C->1
[8] + [6] , A=[4,7] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,4,7] C=1 , END
</scratch>
1547
</s> | 1198 |
Input:
433+923
Target:
| Input:
189+622
Target:
<scratch>
[1,8,9] has 3 digits.
[6,2,2] has 3 digits.
[1,8,9] + [6,2,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[1,8] + [6,2] , A=[1] , C=1 , 8+2+1=11 , A->1 , C->1
[1] + [6] , A=[1,1] , C=1 , 1+6+1=8 , A->8 , C->0
[] + [] , A=[8,1,1] C=0 , END
</scratch>
811
</s> | 1919 |
Input:
158+434
Target:
| Input:
877+214
Target:
<scratch>
[8,7,7] has 3 digits.
[2,1,4] has 3 digits.
[8,7,7] + [2,1,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[8,7] + [2,1] , A=[1] , C=1 , 7+1+1=9 , A->9 , C->0
[8] + [2] , A=[9,1] , C=0 , 8+2+0=10 , A->0 , C->1
[] + [] , A=[0,9,1] C=1 , END
</scratch>
1091
</s> | 914 |
Input:
232+995
Target:
| Input:
474+758
Target:
<scratch>
[4,7,4] has 3 digits.
[7,5,8] has 3 digits.
[4,7,4] + [7,5,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[4,7] + [7,5] , A=[2] , C=1 , 7+5+1=13 , A->3 , C->1
[4] + [7] , A=[3,2] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,3,2] C=1 , END
</scratch>
1232
</s> | 1054 |
Input:
392+316
Target:
| Input:
609+966
Target:
<scratch>
[6,0,9] has 3 digits.
[9,6,6] has 3 digits.
[6,0,9] + [9,6,6] , A=[] , C=0 , 9+6+0=15 , A->5 , C->1
[6,0] + [9,6] , A=[5] , C=1 , 0+6+1=7 , A->7 , C->0
[6] + [9] , A=[7,5] , C=0 , 6+9+0=15 , A->5 , C->1
[] + [] , A=[5,7,5] C=1 , END
</scratch>
1575
</s> | 1406 |
Input:
514+855
Target:
| Input:
351+155
Target:
<scratch>
[3,5,1] has 3 digits.
[1,5,5] has 3 digits.
[3,5,1] + [1,5,5] , A=[] , C=0 , 1+5+0=6 , A->6 , C->0
[3,5] + [1,5] , A=[6] , C=0 , 5+5+0=10 , A->0 , C->1
[3] + [1] , A=[0,6] , C=1 , 3+1+1=5 , A->5 , C->0
[] + [] , A=[5,0,6] C=0 , END
</scratch>
506
</s> | 355 |
Input:
892+169
Target:
| Input:
540+632
Target:
<scratch>
[5,4,0] has 3 digits.
[6,3,2] has 3 digits.
[5,4,0] + [6,3,2] , A=[] , C=0 , 0+2+0=2 , A->2 , C->0
[5,4] + [6,3] , A=[2] , C=0 , 4+3+0=7 , A->7 , C->0
[5] + [6] , A=[7,2] , C=0 , 5+6+0=11 , A->1 , C->1
[] + [] , A=[1,7,2] C=1 , END
</scratch>
1172
</s> | 1209 |
Input:
530+720
Target:
| Input:
774+125
Target:
<scratch>
[7,7,4] has 3 digits.
[1,2,5] has 3 digits.
[7,7,4] + [1,2,5] , A=[] , C=0 , 4+5+0=9 , A->9 , C->0
[7,7] + [1,2] , A=[9] , C=0 , 7+2+0=9 , A->9 , C->0
[7] + [1] , A=[9,9] , C=0 , 7+1+0=8 , A->8 , C->0
[] + [] , A=[8,9,9] C=0 , END
</scratch>
899
</s> | 994 |
Input:
685+390
Target:
| Input:
714+469
Target:
<scratch>
[7,1,4] has 3 digits.
[4,6,9] has 3 digits.
[7,1,4] + [4,6,9] , A=[] , C=0 , 4+9+0=13 , A->3 , C->1
[7,1] + [4,6] , A=[3] , C=1 , 1+6+1=8 , A->8 , C->0
[7] + [4] , A=[8,3] , C=0 , 7+4+0=11 , A->1 , C->1
[] + [] , A=[1,8,3] C=1 , END
</scratch>
1183
</s> | 1807 |
Input:
111+565
Target:
| Input:
914+790
Target:
<scratch>
[9,1,4] has 3 digits.
[7,9,0] has 3 digits.
[9,1,4] + [7,9,0] , A=[] , C=0 , 4+0+0=4 , A->4 , C->0
[9,1] + [7,9] , A=[4] , C=0 , 1+9+0=10 , A->0 , C->1
[9] + [7] , A=[0,4] , C=1 , 9+7+1=17 , A->7 , C->1
[] + [] , A=[7,0,4] C=1 , END
</scratch>
1704
</s> | 1077 |
Input:
594+943
Target:
| Input:
208+688
Target:
<scratch>
[2,0,8] has 3 digits.
[6,8,8] has 3 digits.
[2,0,8] + [6,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[2,0] + [6,8] , A=[6] , C=1 , 0+8+1=9 , A->9 , C->0
[2] + [6] , A=[9,6] , C=0 , 2+6+0=8 , A->8 , C->0
[] + [] , A=[8,9,6] C=0 , END
</scratch>
896
</s> | 762 |
Input:
511+835
Target:
| Input:
610+505
Target:
<scratch>
[6,1,0] has 3 digits.
[5,0,5] has 3 digits.
[6,1,0] + [5,0,5] , A=[] , C=0 , 0+5+0=5 , A->5 , C->0
[6,1] + [5,0] , A=[5] , C=0 , 1+0+0=1 , A->1 , C->0
[6] + [5] , A=[1,5] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,1,5] C=1 , END
</scratch>
1115
</s> | 1406 |
Input:
834+711
Target:
| Input:
855+688
Target:
<scratch>
[8,5,5] has 3 digits.
[6,8,8] has 3 digits.
[8,5,5] + [6,8,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[8,5] + [6,8] , A=[3] , C=1 , 5+8+1=14 , A->4 , C->1
[8] + [6] , A=[4,3] , C=1 , 8+6+1=15 , A->5 , C->1
[] + [] , A=[5,4,3] C=1 , END
</scratch>
1543
</s> | 831 |
Input:
885+874
Target:
| Input:
797+534
Target:
<scratch>
[7,9,7] has 3 digits.
[5,3,4] has 3 digits.
[7,9,7] + [5,3,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[7,9] + [5,3] , A=[1] , C=1 , 9+3+1=13 , A->3 , C->1
[7] + [5] , A=[3,1] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,3,1] C=1 , END
</scratch>
1331
</s> | 1369 |
Input:
585+839
Target:
| Input:
682+129
Target:
<scratch>
[6,8,2] has 3 digits.
[1,2,9] has 3 digits.
[6,8,2] + [1,2,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[6,8] + [1,2] , A=[1] , C=1 , 8+2+1=11 , A->1 , C->1
[6] + [1] , A=[1,1] , C=1 , 6+1+1=8 , A->8 , C->0
[] + [] , A=[8,1,1] C=0 , END
</scratch>
811
</s> | 768 |
Input:
520+904
Target:
| Input:
817+391
Target:
<scratch>
[8,1,7] has 3 digits.
[3,9,1] has 3 digits.
[8,1,7] + [3,9,1] , A=[] , C=0 , 7+1+0=8 , A->8 , C->0
[8,1] + [3,9] , A=[8] , C=0 , 1+9+0=10 , A->0 , C->1
[8] + [3] , A=[0,8] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,0,8] C=1 , END
</scratch>
1208
</s> | 1016 |
Input:
802+773
Target:
| Input:
405+561
Target:
<scratch>
[4,0,5] has 3 digits.
[5,6,1] has 3 digits.
[4,0,5] + [5,6,1] , A=[] , C=0 , 5+1+0=6 , A->6 , C->0
[4,0] + [5,6] , A=[6] , C=0 , 0+6+0=6 , A->6 , C->0
[4] + [5] , A=[6,6] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,6,6] C=0 , END
</scratch>
966
</s> | 773 |
Input:
631+279
Target:
| Input:
881+397
Target:
<scratch>
[8,8,1] has 3 digits.
[3,9,7] has 3 digits.
[8,8,1] + [3,9,7] , A=[] , C=0 , 1+7+0=8 , A->8 , C->0
[8,8] + [3,9] , A=[8] , C=0 , 8+9+0=17 , A->7 , C->1
[8] + [3] , A=[7,8] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,7,8] C=1 , END
</scratch>
1278
</s> | 1038 |
Input:
889+348
Target:
| Input:
600+565
Target:
<scratch>
[6,0,0] has 3 digits.
[5,6,5] has 3 digits.
[6,0,0] + [5,6,5] , A=[] , C=0 , 0+5+0=5 , A->5 , C->0
[6,0] + [5,6] , A=[5] , C=0 , 0+6+0=6 , A->6 , C->0
[6] + [5] , A=[6,5] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,6,5] C=1 , END
</scratch>
1165
</s> | 1157 |
Input:
775+195
Target:
| Input:
959+132
Target:
<scratch>
[9,5,9] has 3 digits.
[1,3,2] has 3 digits.
[9,5,9] + [1,3,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[9,5] + [1,3] , A=[1] , C=1 , 5+3+1=9 , A->9 , C->0
[9] + [1] , A=[9,1] , C=0 , 9+1+0=10 , A->0 , C->1
[] + [] , A=[0,9,1] C=1 , END
</scratch>
1091
</s> | 1190 |
Input:
115+516
Target:
| Input:
409+884
Target:
<scratch>
[4,0,9] has 3 digits.
[8,8,4] has 3 digits.
[4,0,9] + [8,8,4] , A=[] , C=0 , 9+4+0=13 , A->3 , C->1
[4,0] + [8,8] , A=[3] , C=1 , 0+8+1=9 , A->9 , C->0
[4] + [8] , A=[9,3] , C=0 , 4+8+0=12 , A->2 , C->1
[] + [] , A=[2,9,3] C=1 , END
</scratch>
1293
</s> | 1322 |
Input:
394+149
Target:
| Input:
760+985
Target:
<scratch>
[7,6,0] has 3 digits.
[9,8,5] has 3 digits.
[7,6,0] + [9,8,5] , A=[] , C=0 , 0+5+0=5 , A->5 , C->0
[7,6] + [9,8] , A=[5] , C=0 , 6+8+0=14 , A->4 , C->1
[7] + [9] , A=[4,5] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,4,5] C=1 , END
</scratch>
1745
</s> | 996 |
Input:
143+566
Target:
| Input:
203+787
Target:
<scratch>
[2,0,3] has 3 digits.
[7,8,7] has 3 digits.
[2,0,3] + [7,8,7] , A=[] , C=0 , 3+7+0=10 , A->0 , C->1
[2,0] + [7,8] , A=[0] , C=1 , 0+8+1=9 , A->9 , C->0
[2] + [7] , A=[9,0] , C=0 , 2+7+0=9 , A->9 , C->0
[] + [] , A=[9,9,0] C=0 , END
</scratch>
990
</s> | 1143 |
Input:
992+530
Target:
| Input:
649+997
Target:
<scratch>
[6,4,9] has 3 digits.
[9,9,7] has 3 digits.
[6,4,9] + [9,9,7] , A=[] , C=0 , 9+7+0=16 , A->6 , C->1
[6,4] + [9,9] , A=[6] , C=1 , 4+9+1=14 , A->4 , C->1
[6] + [9] , A=[4,6] , C=1 , 6+9+1=16 , A->6 , C->1
[] + [] , A=[6,4,6] C=1 , END
</scratch>
1646
</s> | 1412 |
Input:
406+885
Target:
| Input:
117+879
Target:
<scratch>
[1,1,7] has 3 digits.
[8,7,9] has 3 digits.
[1,1,7] + [8,7,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[1,1] + [8,7] , A=[6] , C=1 , 1+7+1=9 , A->9 , C->0
[1] + [8] , A=[9,6] , C=0 , 1+8+0=9 , A->9 , C->0
[] + [] , A=[9,9,6] C=0 , END
</scratch>
996
</s> | 1723 |
Input:
308+757
Target:
| Input:
134+540
Target:
<scratch>
[1,3,4] has 3 digits.
[5,4,0] has 3 digits.
[1,3,4] + [5,4,0] , A=[] , C=0 , 4+0+0=4 , A->4 , C->0
[1,3] + [5,4] , A=[4] , C=0 , 3+4+0=7 , A->7 , C->0
[1] + [5] , A=[7,4] , C=0 , 1+5+0=6 , A->6 , C->0
[] + [] , A=[6,7,4] C=0 , END
</scratch>
674
</s> | 637 |
Input:
934+368
Target:
| Input:
579+489
Target:
<scratch>
[5,7,9] has 3 digits.
[4,8,9] has 3 digits.
[5,7,9] + [4,8,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[5,7] + [4,8] , A=[8] , C=1 , 7+8+1=16 , A->6 , C->1
[5] + [4] , A=[6,8] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,6,8] C=1 , END
</scratch>
1068
</s> | 1427 |
Input:
574+705
Target:
| Input:
608+496
Target:
<scratch>
[6,0,8] has 3 digits.
[4,9,6] has 3 digits.
[6,0,8] + [4,9,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[6,0] + [4,9] , A=[4] , C=1 , 0+9+1=10 , A->0 , C->1
[6] + [4] , A=[0,4] , C=1 , 6+4+1=11 , A->1 , C->1
[] + [] , A=[1,0,4] C=1 , END
</scratch>
1104
</s> | 1051 |
Input:
789+655
Target:
| Input:
284+346
Target:
<scratch>
[2,8,4] has 3 digits.
[3,4,6] has 3 digits.
[2,8,4] + [3,4,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[2,8] + [3,4] , A=[0] , C=1 , 8+4+1=13 , A->3 , C->1
[2] + [3] , A=[3,0] , C=1 , 2+3+1=6 , A->6 , C->0
[] + [] , A=[6,3,0] C=0 , END
</scratch>
630
</s> | 875 |
Input:
303+898
Target:
| Input:
617+428
Target:
<scratch>
[6,1,7] has 3 digits.
[4,2,8] has 3 digits.
[6,1,7] + [4,2,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[6,1] + [4,2] , A=[5] , C=1 , 1+2+1=4 , A->4 , C->0
[6] + [4] , A=[4,5] , C=0 , 6+4+0=10 , A->0 , C->1
[] + [] , A=[0,4,5] C=1 , END
</scratch>
1045
</s> | 1552 |
Input:
883+554
Target:
| Input:
882+412
Target:
<scratch>
[8,8,2] has 3 digits.
[4,1,2] has 3 digits.
[8,8,2] + [4,1,2] , A=[] , C=0 , 2+2+0=4 , A->4 , C->0
[8,8] + [4,1] , A=[4] , C=0 , 8+1+0=9 , A->9 , C->0
[8] + [4] , A=[9,4] , C=0 , 8+4+0=12 , A->2 , C->1
[] + [] , A=[2,9,4] C=1 , END
</scratch>
1294
</s> | 983 |
Input:
881+275
Target:
| Input:
815+134
Target:
<scratch>
[8,1,5] has 3 digits.
[1,3,4] has 3 digits.
[8,1,5] + [1,3,4] , A=[] , C=0 , 5+4+0=9 , A->9 , C->0
[8,1] + [1,3] , A=[9] , C=0 , 1+3+0=4 , A->4 , C->0
[8] + [1] , A=[4,9] , C=0 , 8+1+0=9 , A->9 , C->0
[] + [] , A=[9,4,9] C=0 , END
</scratch>
949
</s> | 1322 |
Input:
753+886
Target:
| Input:
216+619
Target:
<scratch>
[2,1,6] has 3 digits.
[6,1,9] has 3 digits.
[2,1,6] + [6,1,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[2,1] + [6,1] , A=[5] , C=1 , 1+1+1=3 , A->3 , C->0
[2] + [6] , A=[3,5] , C=0 , 2+6+0=8 , A->8 , C->0
[] + [] , A=[8,3,5] C=0 , END
</scratch>
835
</s> | 527 |
Input:
867+474
Target:
| Input:
784+742
Target:
<scratch>
[7,8,4] has 3 digits.
[7,4,2] has 3 digits.
[7,8,4] + [7,4,2] , A=[] , C=0 , 4+2+0=6 , A->6 , C->0
[7,8] + [7,4] , A=[6] , C=0 , 8+4+0=12 , A->2 , C->1
[7] + [7] , A=[2,6] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,2,6] C=1 , END
</scratch>
1526
</s> | 740 |
Input:
190+510
Target:
| Input:
444+776
Target:
<scratch>
[4,4,4] has 3 digits.
[7,7,6] has 3 digits.
[4,4,4] + [7,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[4,4] + [7,7] , A=[0] , C=1 , 4+7+1=12 , A->2 , C->1
[4] + [7] , A=[2,0] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,2,0] C=1 , END
</scratch>
1220
</s> | 1061 |
Input:
978+234
Target:
| Input:
936+232
Target:
<scratch>
[9,3,6] has 3 digits.
[2,3,2] has 3 digits.
[9,3,6] + [2,3,2] , A=[] , C=0 , 6+2+0=8 , A->8 , C->0
[9,3] + [2,3] , A=[8] , C=0 , 3+3+0=6 , A->6 , C->0
[9] + [2] , A=[6,8] , C=0 , 9+2+0=11 , A->1 , C->1
[] + [] , A=[1,6,8] C=1 , END
</scratch>
1168
</s> | 1497 |
Input:
298+924
Target:
| Input:
914+908
Target:
<scratch>
[9,1,4] has 3 digits.
[9,0,8] has 3 digits.
[9,1,4] + [9,0,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[9,1] + [9,0] , A=[2] , C=1 , 1+0+1=2 , A->2 , C->0
[9] + [9] , A=[2,2] , C=0 , 9+9+0=18 , A->8 , C->1
[] + [] , A=[8,2,2] C=1 , END
</scratch>
1822
</s> | 1263 |
Input:
790+748
Target:
| Input:
408+588
Target:
<scratch>
[4,0,8] has 3 digits.
[5,8,8] has 3 digits.
[4,0,8] + [5,8,8] , A=[] , C=0 , 8+8+0=16 , A->6 , C->1
[4,0] + [5,8] , A=[6] , C=1 , 0+8+1=9 , A->9 , C->0
[4] + [5] , A=[9,6] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,9,6] C=0 , END
</scratch>
996
</s> | 1837 |
Input:
471+747
Target:
| Input:
828+485
Target:
<scratch>
[8,2,8] has 3 digits.
[4,8,5] has 3 digits.
[8,2,8] + [4,8,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[8,2] + [4,8] , A=[3] , C=1 , 2+8+1=11 , A->1 , C->1
[8] + [4] , A=[1,3] , C=1 , 8+4+1=13 , A->3 , C->1
[] + [] , A=[3,1,3] C=1 , END
</scratch>
1313
</s> | 400 |
Input:
336+191
Target:
| Input:
517+422
Target:
<scratch>
[5,1,7] has 3 digits.
[4,2,2] has 3 digits.
[5,1,7] + [4,2,2] , A=[] , C=0 , 7+2+0=9 , A->9 , C->0
[5,1] + [4,2] , A=[9] , C=0 , 1+2+0=3 , A->3 , C->0
[5] + [4] , A=[3,9] , C=0 , 5+4+0=9 , A->9 , C->0
[] + [] , A=[9,3,9] C=0 , END
</scratch>
939
</s> | 311 |
Input:
616+898
Target:
| Input:
286+168
Target:
<scratch>
[2,8,6] has 3 digits.
[1,6,8] has 3 digits.
[2,8,6] + [1,6,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[2,8] + [1,6] , A=[4] , C=1 , 8+6+1=15 , A->5 , C->1
[2] + [1] , A=[5,4] , C=1 , 2+1+1=4 , A->4 , C->0
[] + [] , A=[4,5,4] C=0 , END
</scratch>
454
</s> | 941 |
Input:
896+112
Target:
| Input:
206+757
Target:
<scratch>
[2,0,6] has 3 digits.
[7,5,7] has 3 digits.
[2,0,6] + [7,5,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[2,0] + [7,5] , A=[3] , C=1 , 0+5+1=6 , A->6 , C->0
[2] + [7] , A=[6,3] , C=0 , 2+7+0=9 , A->9 , C->0
[] + [] , A=[9,6,3] C=0 , END
</scratch>
963
</s> | 846 |
Input:
194+749
Target:
| Input:
842+187
Target:
<scratch>
[8,4,2] has 3 digits.
[1,8,7] has 3 digits.
[8,4,2] + [1,8,7] , A=[] , C=0 , 2+7+0=9 , A->9 , C->0
[8,4] + [1,8] , A=[9] , C=0 , 4+8+0=12 , A->2 , C->1
[8] + [1] , A=[2,9] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,2,9] C=1 , END
</scratch>
1029
</s> | 780 |
Input:
577+207
Target:
| Input:
853+362
Target:
<scratch>
[8,5,3] has 3 digits.
[3,6,2] has 3 digits.
[8,5,3] + [3,6,2] , A=[] , C=0 , 3+2+0=5 , A->5 , C->0
[8,5] + [3,6] , A=[5] , C=0 , 5+6+0=11 , A->1 , C->1
[8] + [3] , A=[1,5] , C=1 , 8+3+1=12 , A->2 , C->1
[] + [] , A=[2,1,5] C=1 , END
</scratch>
1215
</s> | 1046 |
Input:
894+432
Target:
| Input:
663+264
Target:
<scratch>
[6,6,3] has 3 digits.
[2,6,4] has 3 digits.
[6,6,3] + [2,6,4] , A=[] , C=0 , 3+4+0=7 , A->7 , C->0
[6,6] + [2,6] , A=[7] , C=0 , 6+6+0=12 , A->2 , C->1
[6] + [2] , A=[2,7] , C=1 , 6+2+1=9 , A->9 , C->0
[] + [] , A=[9,2,7] C=0 , END
</scratch>
927
</s> | 1196 |
Input:
422+648
Target:
| Input:
137+128
Target:
<scratch>
[1,3,7] has 3 digits.
[1,2,8] has 3 digits.
[1,3,7] + [1,2,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[1,3] + [1,2] , A=[5] , C=1 , 3+2+1=6 , A->6 , C->0
[1] + [1] , A=[6,5] , C=0 , 1+1+0=2 , A->2 , C->0
[] + [] , A=[2,6,5] C=0 , END
</scratch>
265
</s> | 631 |
Input:
232+321
Target:
| Input:
574+487
Target:
<scratch>
[5,7,4] has 3 digits.
[4,8,7] has 3 digits.
[5,7,4] + [4,8,7] , A=[] , C=0 , 4+7+0=11 , A->1 , C->1
[5,7] + [4,8] , A=[1] , C=1 , 7+8+1=16 , A->6 , C->1
[5] + [4] , A=[6,1] , C=1 , 5+4+1=10 , A->0 , C->1
[] + [] , A=[0,6,1] C=1 , END
</scratch>
1061
</s> | 990 |
Input:
438+822
Target:
| Input:
606+524
Target:
<scratch>
[6,0,6] has 3 digits.
[5,2,4] has 3 digits.
[6,0,6] + [5,2,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[6,0] + [5,2] , A=[0] , C=1 , 0+2+1=3 , A->3 , C->0
[6] + [5] , A=[3,0] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,3,0] C=1 , END
</scratch>
1130
</s> | 601 |
Input:
820+776
Target:
| Input:
776+480
Target:
<scratch>
[7,7,6] has 3 digits.
[4,8,0] has 3 digits.
[7,7,6] + [4,8,0] , A=[] , C=0 , 6+0+0=6 , A->6 , C->0
[7,7] + [4,8] , A=[6] , C=0 , 7+8+0=15 , A->5 , C->1
[7] + [4] , A=[5,6] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,5,6] C=1 , END
</scratch>
1256
</s> | 1098 |
Input:
543+198
Target:
| Input:
747+581
Target:
<scratch>
[7,4,7] has 3 digits.
[5,8,1] has 3 digits.
[7,4,7] + [5,8,1] , A=[] , C=0 , 7+1+0=8 , A->8 , C->0
[7,4] + [5,8] , A=[8] , C=0 , 4+8+0=12 , A->2 , C->1
[7] + [5] , A=[2,8] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,2,8] C=1 , END
</scratch>
1328
</s> | 1553 |
Input:
137+893
Target:
| Input:
106+448
Target:
<scratch>
[1,0,6] has 3 digits.
[4,4,8] has 3 digits.
[1,0,6] + [4,4,8] , A=[] , C=0 , 6+8+0=14 , A->4 , C->1
[1,0] + [4,4] , A=[4] , C=1 , 0+4+1=5 , A->5 , C->0
[1] + [4] , A=[5,4] , C=0 , 1+4+0=5 , A->5 , C->0
[] + [] , A=[5,5,4] C=0 , END
</scratch>
554
</s> | 413 |
Input:
505+317
Target:
| Input:
728+379
Target:
<scratch>
[7,2,8] has 3 digits.
[3,7,9] has 3 digits.
[7,2,8] + [3,7,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[7,2] + [3,7] , A=[7] , C=1 , 2+7+1=10 , A->0 , C->1
[7] + [3] , A=[0,7] , C=1 , 7+3+1=11 , A->1 , C->1
[] + [] , A=[1,0,7] C=1 , END
</scratch>
1107
</s> | 1333 |
Input:
139+129
Target:
| Input:
928+645
Target:
<scratch>
[9,2,8] has 3 digits.
[6,4,5] has 3 digits.
[9,2,8] + [6,4,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[9,2] + [6,4] , A=[3] , C=1 , 2+4+1=7 , A->7 , C->0
[9] + [6] , A=[7,3] , C=0 , 9+6+0=15 , A->5 , C->1
[] + [] , A=[5,7,3] C=1 , END
</scratch>
1573
</s> | 1362 |
Input:
341+989
Target:
| Input:
568+524
Target:
<scratch>
[5,6,8] has 3 digits.
[5,2,4] has 3 digits.
[5,6,8] + [5,2,4] , A=[] , C=0 , 8+4+0=12 , A->2 , C->1
[5,6] + [5,2] , A=[2] , C=1 , 6+2+1=9 , A->9 , C->0
[5] + [5] , A=[9,2] , C=0 , 5+5+0=10 , A->0 , C->1
[] + [] , A=[0,9,2] C=1 , END
</scratch>
1092
</s> | 1572 |
Input:
207+505
Target:
| Input:
357+440
Target:
<scratch>
[3,5,7] has 3 digits.
[4,4,0] has 3 digits.
[3,5,7] + [4,4,0] , A=[] , C=0 , 7+0+0=7 , A->7 , C->0
[3,5] + [4,4] , A=[7] , C=0 , 5+4+0=9 , A->9 , C->0
[3] + [4] , A=[9,7] , C=0 , 3+4+0=7 , A->7 , C->0
[] + [] , A=[7,9,7] C=0 , END
</scratch>
797
</s> | 1497 |
Input:
509+297
Target:
| Input:
144+328
Target:
<scratch>
[1,4,4] has 3 digits.
[3,2,8] has 3 digits.
[1,4,4] + [3,2,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[1,4] + [3,2] , A=[2] , C=1 , 4+2+1=7 , A->7 , C->0
[1] + [3] , A=[7,2] , C=0 , 1+3+0=4 , A->4 , C->0
[] + [] , A=[4,7,2] C=0 , END
</scratch>
472
</s> | 1141 |
Input:
163+434
Target:
| Input:
626+152
Target:
<scratch>
[6,2,6] has 3 digits.
[1,5,2] has 3 digits.
[6,2,6] + [1,5,2] , A=[] , C=0 , 6+2+0=8 , A->8 , C->0
[6,2] + [1,5] , A=[8] , C=0 , 2+5+0=7 , A->7 , C->0
[6] + [1] , A=[7,8] , C=0 , 6+1+0=7 , A->7 , C->0
[] + [] , A=[7,7,8] C=0 , END
</scratch>
778
</s> | 1606 |
Input:
111+287
Target:
| Input:
979+480
Target:
<scratch>
[9,7,9] has 3 digits.
[4,8,0] has 3 digits.
[9,7,9] + [4,8,0] , A=[] , C=0 , 9+0+0=9 , A->9 , C->0
[9,7] + [4,8] , A=[9] , C=0 , 7+8+0=15 , A->5 , C->1
[9] + [4] , A=[5,9] , C=1 , 9+4+1=14 , A->4 , C->1
[] + [] , A=[4,5,9] C=1 , END
</scratch>
1459
</s> | 734 |
Input:
761+404
Target:
| Input:
157+628
Target:
<scratch>
[1,5,7] has 3 digits.
[6,2,8] has 3 digits.
[1,5,7] + [6,2,8] , A=[] , C=0 , 7+8+0=15 , A->5 , C->1
[1,5] + [6,2] , A=[5] , C=1 , 5+2+1=8 , A->8 , C->0
[1] + [6] , A=[8,5] , C=0 , 1+6+0=7 , A->7 , C->0
[] + [] , A=[7,8,5] C=0 , END
</scratch>
785
</s> | 593 |
Input:
682+442
Target:
| Input:
324+176
Target:
<scratch>
[3,2,4] has 3 digits.
[1,7,6] has 3 digits.
[3,2,4] + [1,7,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[3,2] + [1,7] , A=[0] , C=1 , 2+7+1=10 , A->0 , C->1
[3] + [1] , A=[0,0] , C=1 , 3+1+1=5 , A->5 , C->0
[] + [] , A=[5,0,0] C=0 , END
</scratch>
500
</s> | 1886 |
Input:
776+653
Target:
| Input:
888+363
Target:
<scratch>
[8,8,8] has 3 digits.
[3,6,3] has 3 digits.
[8,8,8] + [3,6,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[8,8] + [3,6] , A=[1] , C=1 , 8+6+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
</s> | 1629 |
Input:
473+393
Target:
| Input:
139+872
Target:
<scratch>
[1,3,9] has 3 digits.
[8,7,2] has 3 digits.
[1,3,9] + [8,7,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[1,3] + [8,7] , A=[1] , C=1 , 3+7+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
</s> | 1664 |
Input:
714+748
Target:
| Input:
441+129
Target:
<scratch>
[4,4,1] has 3 digits.
[1,2,9] has 3 digits.
[4,4,1] + [1,2,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[4,4] + [1,2] , A=[0] , C=1 , 4+2+1=7 , A->7 , C->0
[4] + [1] , A=[7,0] , C=0 , 4+1+0=5 , A->5 , C->0
[] + [] , A=[5,7,0] C=0 , END
</scratch>
570
</s> | 1489 |
Input:
149+158
Target:
| Input:
189+123
Target:
<scratch>
[1,8,9] has 3 digits.
[1,2,3] has 3 digits.
[1,8,9] + [1,2,3] , A=[] , C=0 , 9+3+0=12 , A->2 , C->1
[1,8] + [1,2] , A=[2] , C=1 , 8+2+1=11 , A->1 , C->1
[1] + [1] , A=[1,2] , C=1 , 1+1+1=3 , A->3 , C->0
[] + [] , A=[3,1,2] C=0 , END
</scratch>
312
</s> | 1049 |
Input:
629+916
Target:
| Input:
668+260
Target:
<scratch>
[6,6,8] has 3 digits.
[2,6,0] has 3 digits.
[6,6,8] + [2,6,0] , A=[] , C=0 , 8+0+0=8 , A->8 , C->0
[6,6] + [2,6] , A=[8] , C=0 , 6+6+0=12 , A->2 , C->1
[6] + [2] , A=[2,8] , C=1 , 6+2+1=9 , A->9 , C->0
[] + [] , A=[9,2,8] C=0 , END
</scratch>
928
</s> | 1316 |
Input:
466+829
Target:
| Input:
452+507
Target:
<scratch>
[4,5,2] has 3 digits.
[5,0,7] has 3 digits.
[4,5,2] + [5,0,7] , A=[] , C=0 , 2+7+0=9 , A->9 , C->0
[4,5] + [5,0] , A=[9] , C=0 , 5+0+0=5 , A->5 , C->0
[4] + [5] , A=[5,9] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,5,9] C=0 , END
</scratch>
959
</s> | 1072 |
Input:
933+661
Target:
| Input:
222+908
Target:
<scratch>
[2,2,2] has 3 digits.
[9,0,8] has 3 digits.
[2,2,2] + [9,0,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[2,2] + [9,0] , A=[0] , C=1 , 2+0+1=3 , A->3 , C->0
[2] + [9] , A=[3,0] , C=0 , 2+9+0=11 , A->1 , C->1
[] + [] , A=[1,3,0] C=1 , END
</scratch>
1130
</s> | 1726 |
Input:
281+905
Target:
| Input:
227+291
Target:
<scratch>
[2,2,7] has 3 digits.
[2,9,1] has 3 digits.
[2,2,7] + [2,9,1] , A=[] , C=0 , 7+1+0=8 , A->8 , C->0
[2,2] + [2,9] , A=[8] , C=0 , 2+9+0=11 , A->1 , C->1
[2] + [2] , A=[1,8] , C=1 , 2+2+1=5 , A->5 , C->0
[] + [] , A=[5,1,8] C=0 , END
</scratch>
518
</s> | 485 |
Input:
547+729
Target:
| Input:
418+240
Target:
<scratch>
[4,1,8] has 3 digits.
[2,4,0] has 3 digits.
[4,1,8] + [2,4,0] , A=[] , C=0 , 8+0+0=8 , A->8 , C->0
[4,1] + [2,4] , A=[8] , C=0 , 1+4+0=5 , A->5 , C->0
[4] + [2] , A=[5,8] , C=0 , 4+2+0=6 , A->6 , C->0
[] + [] , A=[6,5,8] C=0 , END
</scratch>
658
</s> | 682 |
Input:
394+286
Target:
| Input:
520+897
Target:
<scratch>
[5,2,0] has 3 digits.
[8,9,7] has 3 digits.
[5,2,0] + [8,9,7] , A=[] , C=0 , 0+7+0=7 , A->7 , C->0
[5,2] + [8,9] , A=[7] , C=0 , 2+9+0=11 , A->1 , C->1
[5] + [8] , A=[1,7] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,1,7] C=1 , END
</scratch>
1417
</s> | 1825 |
Input:
297+979
Target:
| Input:
642+898
Target:
<scratch>
[6,4,2] has 3 digits.
[8,9,8] has 3 digits.
[6,4,2] + [8,9,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[6,4] + [8,9] , A=[0] , C=1 , 4+9+1=14 , A->4 , C->1
[6] + [8] , A=[4,0] , C=1 , 6+8+1=15 , A->5 , C->1
[] + [] , A=[5,4,0] C=1 , END
</scratch>
1540
</s> | 1034 |
Input:
650+156
Target:
| Input:
878+210
Target:
<scratch>
[8,7,8] has 3 digits.
[2,1,0] has 3 digits.
[8,7,8] + [2,1,0] , A=[] , C=0 , 8+0+0=8 , A->8 , C->0
[8,7] + [2,1] , A=[8] , C=0 , 7+1+0=8 , A->8 , C->0
[8] + [2] , A=[8,8] , C=0 , 8+2+0=10 , A->0 , C->1
[] + [] , A=[0,8,8] C=1 , END
</scratch>
1088
</s> | 1583 |
Input:
829+362
Target:
| Input:
541+982
Target:
<scratch>
[5,4,1] has 3 digits.
[9,8,2] has 3 digits.
[5,4,1] + [9,8,2] , A=[] , C=0 , 1+2+0=3 , A->3 , C->0
[5,4] + [9,8] , A=[3] , C=0 , 4+8+0=12 , A->2 , C->1
[5] + [9] , A=[2,3] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,2,3] C=1 , END
</scratch>
1523
</s> | 1429 |
Input:
746+523
Target:
| Input:
256+979
Target:
<scratch>
[2,5,6] has 3 digits.
[9,7,9] has 3 digits.
[2,5,6] + [9,7,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[2,5] + [9,7] , A=[5] , C=1 , 5+7+1=13 , A->3 , C->1
[2] + [9] , A=[3,5] , C=1 , 2+9+1=12 , A->2 , C->1
[] + [] , A=[2,3,5] C=1 , END
</scratch>
1235
</s> | 772 |
Input:
772+444
Target:
| Input:
366+879
Target:
<scratch>
[3,6,6] has 3 digits.
[8,7,9] has 3 digits.
[3,6,6] + [8,7,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[3,6] + [8,7] , A=[5] , C=1 , 6+7+1=14 , A->4 , C->1
[3] + [8] , A=[4,5] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,4,5] C=1 , END
</scratch>
1245
</s> | 1196 |
Input:
824+432
Target:
| Input:
894+998
Target:
<scratch>
[8,9,4] has 3 digits.
[9,9,8] has 3 digits.
[8,9,4] + [9,9,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[8,9] + [9,9] , A=[2] , C=1 , 9+9+1=19 , A->9 , C->1
[8] + [9] , A=[9,2] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,9,2] C=1 , END
</scratch>
1892
</s> | 892 |
Input:
814+961
Target:
| Input:
458+663
Target:
<scratch>
[4,5,8] has 3 digits.
[6,6,3] has 3 digits.
[4,5,8] + [6,6,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[4,5] + [6,6] , A=[1] , C=1 , 5+6+1=12 , A->2 , C->1
[4] + [6] , A=[2,1] , C=1 , 4+6+1=11 , A->1 , C->1
[] + [] , A=[1,2,1] C=1 , END
</scratch>
1121
</s> | 757 |
Input:
363+938
Target:
| Input:
822+629
Target:
<scratch>
[8,2,2] has 3 digits.
[6,2,9] has 3 digits.
[8,2,2] + [6,2,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[8,2] + [6,2] , A=[1] , C=1 , 2+2+1=5 , A->5 , C->0
[8] + [6] , A=[5,1] , C=0 , 8+6+0=14 , A->4 , C->1
[] + [] , A=[4,5,1] C=1 , END
</scratch>
1451
</s> | 1660 |
Input:
119+956
Target:
| Input:
347+750
Target:
<scratch>
[3,4,7] has 3 digits.
[7,5,0] has 3 digits.
[3,4,7] + [7,5,0] , A=[] , C=0 , 7+0+0=7 , A->7 , C->0
[3,4] + [7,5] , A=[7] , C=0 , 4+5+0=9 , A->9 , C->0
[3] + [7] , A=[9,7] , C=0 , 3+7+0=10 , A->0 , C->1
[] + [] , A=[0,9,7] C=1 , END
</scratch>
1097
</s> | 1375 |
Input:
208+211
Target:
| Input:
785+730
Target:
<scratch>
[7,8,5] has 3 digits.
[7,3,0] has 3 digits.
[7,8,5] + [7,3,0] , A=[] , C=0 , 5+0+0=5 , A->5 , C->0
[7,8] + [7,3] , A=[5] , C=0 , 8+3+0=11 , A->1 , C->1
[7] + [7] , A=[1,5] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,1,5] C=1 , END
</scratch>
1515
</s> | 596 |
Input:
303+800
Target:
| Input:
362+445
Target:
<scratch>
[3,6,2] has 3 digits.
[4,4,5] has 3 digits.
[3,6,2] + [4,4,5] , A=[] , C=0 , 2+5+0=7 , A->7 , C->0
[3,6] + [4,4] , A=[7] , C=0 , 6+4+0=10 , A->0 , C->1
[3] + [4] , A=[0,7] , C=1 , 3+4+1=8 , A->8 , C->0
[] + [] , A=[8,0,7] C=0 , END
</scratch>
807
</s> | 314 |
Input:
766+140
Target:
| Input:
479+855
Target:
<scratch>
[4,7,9] has 3 digits.
[8,5,5] has 3 digits.
[4,7,9] + [8,5,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[4,7] + [8,5] , A=[4] , C=1 , 7+5+1=13 , A->3 , C->1
[4] + [8] , A=[3,4] , C=1 , 4+8+1=13 , A->3 , C->1
[] + [] , A=[3,3,4] C=1 , END
</scratch>
1334
</s> | 1052 |
Input:
421+165
Target:
| Input:
404+841
Target:
<scratch>
[4,0,4] has 3 digits.
[8,4,1] has 3 digits.
[4,0,4] + [8,4,1] , A=[] , C=0 , 4+1+0=5 , A->5 , C->0
[4,0] + [8,4] , A=[5] , C=0 , 0+4+0=4 , A->4 , C->0
[4] + [8] , A=[4,5] , C=0 , 4+8+0=12 , A->2 , C->1
[] + [] , A=[2,4,5] C=1 , END
</scratch>
1245
</s> | 1059 |
Input:
169+709
Target:
| Input:
821+159
Target:
<scratch>
[8,2,1] has 3 digits.
[1,5,9] has 3 digits.
[8,2,1] + [1,5,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[8,2] + [1,5] , A=[0] , C=1 , 2+5+1=8 , A->8 , C->0
[8] + [1] , A=[8,0] , C=0 , 8+1+0=9 , A->9 , C->0
[] + [] , A=[9,8,0] C=0 , END
</scratch>
980
</s> | 1054 |
Input:
354+600
Target:
| Input:
385+264
Target:
<scratch>
[3,8,5] has 3 digits.
[2,6,4] has 3 digits.
[3,8,5] + [2,6,4] , A=[] , C=0 , 5+4+0=9 , A->9 , C->0
[3,8] + [2,6] , A=[9] , C=0 , 8+6+0=14 , A->4 , C->1
[3] + [2] , A=[4,9] , C=1 , 3+2+1=6 , A->6 , C->0
[] + [] , A=[6,4,9] C=0 , END
</scratch>
649
</s> | 657 |
Input:
935+682
Target:
| Input:
920+967
Target:
<scratch>
[9,2,0] has 3 digits.
[9,6,7] has 3 digits.
[9,2,0] + [9,6,7] , A=[] , C=0 , 0+7+0=7 , A->7 , C->0
[9,2] + [9,6] , A=[7] , C=0 , 2+6+0=8 , A->8 , C->0
[9] + [9] , A=[8,7] , C=0 , 9+9+0=18 , A->8 , C->1
[] + [] , A=[8,8,7] C=1 , END
</scratch>
1887
</s> | 1656 |
Input:
802+477
Target:
| Input:
628+291
Target:
<scratch>
[6,2,8] has 3 digits.
[2,9,1] has 3 digits.
[6,2,8] + [2,9,1] , A=[] , C=0 , 8+1+0=9 , A->9 , C->0
[6,2] + [2,9] , A=[9] , C=0 , 2+9+0=11 , A->1 , C->1
[6] + [2] , A=[1,9] , C=1 , 6+2+1=9 , A->9 , C->0
[] + [] , A=[9,1,9] C=0 , END
</scratch>
919
</s> | 833 |
Input:
476+828
Target:
| Input:
685+555
Target:
<scratch>
[6,8,5] has 3 digits.
[5,5,5] has 3 digits.
[6,8,5] + [5,5,5] , A=[] , C=0 , 5+5+0=10 , A->0 , C->1
[6,8] + [5,5] , A=[0] , C=1 , 8+5+1=14 , A->4 , C->1
[6] + [5] , A=[4,0] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,4,0] C=1 , END
</scratch>
1240
</s> | 1238 |
Input:
259+617
Target:
| Input:
905+253
Target:
<scratch>
[9,0,5] has 3 digits.
[2,5,3] has 3 digits.
[9,0,5] + [2,5,3] , A=[] , C=0 , 5+3+0=8 , A->8 , C->0
[9,0] + [2,5] , A=[8] , C=0 , 0+5+0=5 , A->5 , C->0
[9] + [2] , A=[5,8] , C=0 , 9+2+0=11 , A->1 , C->1
[] + [] , A=[1,5,8] C=1 , END
</scratch>
1158
</s> | 1067 |
Input:
309+939
Target:
| Input:
521+927
Target:
<scratch>
[5,2,1] has 3 digits.
[9,2,7] has 3 digits.
[5,2,1] + [9,2,7] , A=[] , C=0 , 1+7+0=8 , A->8 , C->0
[5,2] + [9,2] , A=[8] , C=0 , 2+2+0=4 , A->4 , C->0
[5] + [9] , A=[4,8] , C=0 , 5+9+0=14 , A->4 , C->1
[] + [] , A=[4,4,8] C=1 , END
</scratch>
1448
</s> | 628 |
Input:
915+710
Target:
| Input:
262+372
Target:
<scratch>
[2,6,2] has 3 digits.
[3,7,2] has 3 digits.
[2,6,2] + [3,7,2] , A=[] , C=0 , 2+2+0=4 , A->4 , C->0
[2,6] + [3,7] , A=[4] , C=0 , 6+7+0=13 , A->3 , C->1
[2] + [3] , A=[3,4] , C=1 , 2+3+1=6 , A->6 , C->0
[] + [] , A=[6,3,4] C=0 , END
</scratch>
634
</s> | 1045 |
Input:
872+596
Target:
| Input:
768+131
Target:
<scratch>
[7,6,8] has 3 digits.
[1,3,1] has 3 digits.
[7,6,8] + [1,3,1] , A=[] , C=0 , 8+1+0=9 , A->9 , C->0
[7,6] + [1,3] , A=[9] , C=0 , 6+3+0=9 , A->9 , C->0
[7] + [1] , A=[9,9] , C=0 , 7+1+0=8 , A->8 , C->0
[] + [] , A=[8,9,9] C=0 , END
</scratch>
899
</s> | 1592 |
Input:
113+215
Target:
| Input:
498+427
Target:
<scratch>
[4,9,8] has 3 digits.
[4,2,7] has 3 digits.
[4,9,8] + [4,2,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[4,9] + [4,2] , A=[5] , C=1 , 9+2+1=12 , A->2 , C->1
[4] + [4] , A=[2,5] , C=1 , 4+4+1=9 , A->9 , C->0
[] + [] , A=[9,2,5] C=0 , END
</scratch>
925
</s> | 1791 |
Input:
827+557
Target:
| Input:
893+952
Target:
<scratch>
[8,9,3] has 3 digits.
[9,5,2] has 3 digits.
[8,9,3] + [9,5,2] , A=[] , C=0 , 3+2+0=5 , A->5 , C->0
[8,9] + [9,5] , A=[5] , C=0 , 9+5+0=14 , A->4 , C->1
[8] + [9] , A=[4,5] , C=1 , 8+9+1=18 , A->8 , C->1
[] + [] , A=[8,4,5] C=1 , END
</scratch>
1845
</s> | 1042 |
Input:
117+280
Target:
| Input:
410+201
Target:
<scratch>
[4,1,0] has 3 digits.
[2,0,1] has 3 digits.
[4,1,0] + [2,0,1] , A=[] , C=0 , 0+1+0=1 , A->1 , C->0
[4,1] + [2,0] , A=[1] , C=0 , 1+0+0=1 , A->1 , C->0
[4] + [2] , A=[1,1] , C=0 , 4+2+0=6 , A->6 , C->0
[] + [] , A=[6,1,1] C=0 , END
</scratch>
611
</s> | 1091 |
Input:
526+373
Target:
| Input:
553+932
Target:
<scratch>
[5,5,3] has 3 digits.
[9,3,2] has 3 digits.
[5,5,3] + [9,3,2] , A=[] , C=0 , 3+2+0=5 , A->5 , C->0
[5,5] + [9,3] , A=[5] , C=0 , 5+3+0=8 , A->8 , C->0
[5] + [9] , A=[8,5] , C=0 , 5+9+0=14 , A->4 , C->1
[] + [] , A=[4,8,5] C=1 , END
</scratch>
1485
</s> | 1080 |
Input:
234+773
Target:
| Input:
898+126
Target:
<scratch>
[8,9,8] has 3 digits.
[1,2,6] has 3 digits.
[8,9,8] + [1,2,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[8,9] + [1,2] , A=[4] , C=1 , 9+2+1=12 , A->2 , C->1
[8] + [1] , A=[2,4] , C=1 , 8+1+1=10 , A->0 , C->1
[] + [] , A=[0,2,4] C=1 , END
</scratch>
1024
</s> | 1200 |
Input:
562+422
Target:
| Input:
561+671
Target:
<scratch>
[5,6,1] has 3 digits.
[6,7,1] has 3 digits.
[5,6,1] + [6,7,1] , A=[] , C=0 , 1+1+0=2 , A->2 , C->0
[5,6] + [6,7] , A=[2] , C=0 , 6+7+0=13 , A->3 , C->1
[5] + [6] , A=[3,2] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,3,2] C=1 , END
</scratch>
1232
</s> | 1656 |
Input:
741+445
Target:
| Input:
373+403
Target:
<scratch>
[3,7,3] has 3 digits.
[4,0,3] has 3 digits.
[3,7,3] + [4,0,3] , A=[] , C=0 , 3+3+0=6 , A->6 , C->0
[3,7] + [4,0] , A=[6] , C=0 , 7+0+0=7 , A->7 , C->0
[3] + [4] , A=[7,6] , C=0 , 3+4+0=7 , A->7 , C->0
[] + [] , A=[7,7,6] C=0 , END
</scratch>
776
</s> | 367 |
Input:
968+873
Target:
| Input:
334+791
Target:
<scratch>
[3,3,4] has 3 digits.
[7,9,1] has 3 digits.
[3,3,4] + [7,9,1] , A=[] , C=0 , 4+1+0=5 , A->5 , C->0
[3,3] + [7,9] , A=[5] , C=0 , 3+9+0=12 , A->2 , C->1
[3] + [7] , A=[2,5] , C=1 , 3+7+1=11 , A->1 , C->1
[] + [] , A=[1,2,5] C=1 , END
</scratch>
1125
</s> | 1418 |