input_test
stringlengths 23
23
| scratchpad
stringlengths 283
287
| result_final
stringlengths 3
4
|
---|---|---|
Input:
678+875
Target:
| Input:
378+830
Target:
<scratch>
[3,7,8] has 3 digits.
[8,3,0] has 3 digits.
[3,7,8] + [8,3,0] , A=[] , C=0 , 8+0+0=8 , A->8 , C->0
[3,7] + [8,3] , A=[8] , C=0 , 7+3+0=10 , A->0 , C->1
[3] + [8] , A=[0,8] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,0,8] C=1 , END
</scratch>
1208
</s> | 527 |
Input:
793+809
Target:
| Input:
592+833
Target:
<scratch>
[5,9,2] has 3 digits.
[8,3,3] has 3 digits.
[5,9,2] + [8,3,3] , A=[] , C=0 , 2+3+0=5 , A->5 , C->0
[5,9] + [8,3] , A=[5] , C=0 , 9+3+0=12 , A->2 , C->1
[5] + [8] , A=[2,5] , C=1 , 5+8+1=14 , A->4 , C->1
[] + [] , A=[4,2,5] C=1 , END
</scratch>
1425
</s> | 1228 |
Input:
792+754
Target:
| Input:
175+262
Target:
<scratch>
[1,7,5] has 3 digits.
[2,6,2] has 3 digits.
[1,7,5] + [2,6,2] , A=[] , C=0 , 5+2+0=7 , A->7 , C->0
[1,7] + [2,6] , A=[7] , C=0 , 7+6+0=13 , A->3 , C->1
[1] + [2] , A=[3,7] , C=1 , 1+2+1=4 , A->4 , C->0
[] + [] , A=[4,3,7] C=0 , END
</scratch>
437
</s> | 879 |
Input:
977+696
Target:
| Input:
268+623
Target:
<scratch>
[2,6,8] has 3 digits.
[6,2,3] has 3 digits.
[2,6,8] + [6,2,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[2,6] + [6,2] , A=[1] , C=1 , 6+2+1=9 , A->9 , C->0
[2] + [6] , A=[9,1] , C=0 , 2+6+0=8 , A->8 , C->0
[] + [] , A=[8,9,1] C=0 , END
</scratch>
891
</s> | 616 |
Input:
323+219
Target:
| Input:
483+313
Target:
<scratch>
[4,8,3] has 3 digits.
[3,1,3] has 3 digits.
[4,8,3] + [3,1,3] , A=[] , C=0 , 3+3+0=6 , A->6 , C->0
[4,8] + [3,1] , A=[6] , C=0 , 8+1+0=9 , A->9 , C->0
[4] + [3] , A=[9,6] , C=0 , 4+3+0=7 , A->7 , C->0
[] + [] , A=[7,9,6] C=0 , END
</scratch>
796
</s> | 1367 |
Input:
126+574
Target:
| Input:
257+753
Target:
<scratch>
[2,5,7] has 3 digits.
[7,5,3] has 3 digits.
[2,5,7] + [7,5,3] , A=[] , C=0 , 7+3+0=10 , A->0 , C->1
[2,5] + [7,5] , A=[0] , C=1 , 5+5+1=11 , A->1 , C->1
[2] + [7] , A=[1,0] , C=1 , 2+7+1=10 , A->0 , C->1
[] + [] , A=[0,1,0] C=1 , END
</scratch>
1010
</s> | 1177 |
Input:
254+449
Target:
| Input:
749+595
Target:
<scratch>
[7,4,9] has 3 digits.
[5,9,5] has 3 digits.
[7,4,9] + [5,9,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[7,4] + [5,9] , A=[4] , C=1 , 4+9+1=14 , A->4 , C->1
[7] + [5] , A=[4,4] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,4,4] C=1 , END
</scratch>
1344
</s> | 1525 |
Input:
647+370
Target:
| Input:
510+640
Target:
<scratch>
[5,1,0] has 3 digits.
[6,4,0] has 3 digits.
[5,1,0] + [6,4,0] , A=[] , C=0 , 0+0+0=0 , A->0 , C->0
[5,1] + [6,4] , A=[0] , C=0 , 1+4+0=5 , A->5 , C->0
[5] + [6] , A=[5,0] , C=0 , 5+6+0=11 , A->1 , C->1
[] + [] , A=[1,5,0] C=1 , END
</scratch>
1150
</s> | 994 |
Input:
792+699
Target:
| Input:
166+257
Target:
<scratch>
[1,6,6] has 3 digits.
[2,5,7] has 3 digits.
[1,6,6] + [2,5,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[1,6] + [2,5] , A=[3] , C=1 , 6+5+1=12 , A->2 , C->1
[1] + [2] , A=[2,3] , C=1 , 1+2+1=4 , A->4 , C->0
[] + [] , A=[4,2,3] C=0 , END
</scratch>
423
</s> | 1250 |
Input:
909+401
Target:
| Input:
400+909
Target:
<scratch>
[4,0,0] has 3 digits.
[9,0,9] has 3 digits.
[4,0,0] + [9,0,9] , A=[] , C=0 , 0+9+0=9 , A->9 , C->0
[4,0] + [9,0] , A=[9] , C=0 , 0+0+0=0 , A->0 , C->0
[4] + [9] , A=[0,9] , C=0 , 4+9+0=13 , A->3 , C->1
[] + [] , A=[3,0,9] C=1 , END
</scratch>
1309
</s> | 961 |
Input:
753+249
Target:
| Input:
785+597
Target:
<scratch>
[7,8,5] has 3 digits.
[5,9,7] has 3 digits.
[7,8,5] + [5,9,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[7,8] + [5,9] , A=[2] , C=1 , 8+9+1=18 , A->8 , C->1
[7] + [5] , A=[8,2] , C=1 , 7+5+1=13 , A->3 , C->1
[] + [] , A=[3,8,2] C=1 , END
</scratch>
1382
</s> | 1329 |
Input:
205+429
Target:
| Input:
220+845
Target:
<scratch>
[2,2,0] has 3 digits.
[8,4,5] has 3 digits.
[2,2,0] + [8,4,5] , A=[] , C=0 , 0+5+0=5 , A->5 , C->0
[2,2] + [8,4] , A=[5] , C=0 , 2+4+0=6 , A->6 , C->0
[2] + [8] , A=[6,5] , C=0 , 2+8+0=10 , A->0 , C->1
[] + [] , A=[0,6,5] C=1 , END
</scratch>
1065
</s> | 1114 |
Input:
962+803
Target:
| Input:
872+214
Target:
<scratch>
[8,7,2] has 3 digits.
[2,1,4] has 3 digits.
[8,7,2] + [2,1,4] , A=[] , C=0 , 2+4+0=6 , A->6 , C->0
[8,7] + [2,1] , A=[6] , C=0 , 7+1+0=8 , A->8 , C->0
[8] + [2] , A=[8,6] , C=0 , 8+2+0=10 , A->0 , C->1
[] + [] , A=[0,8,6] C=1 , END
</scratch>
1086
</s> | 1236 |
Input:
378+844
Target:
| Input:
421+953
Target:
<scratch>
[4,2,1] has 3 digits.
[9,5,3] has 3 digits.
[4,2,1] + [9,5,3] , A=[] , C=0 , 1+3+0=4 , A->4 , C->0
[4,2] + [9,5] , A=[4] , C=0 , 2+5+0=7 , A->7 , C->0
[4] + [9] , A=[7,4] , C=0 , 4+9+0=13 , A->3 , C->1
[] + [] , A=[3,7,4] C=1 , END
</scratch>
1374
</s> | 1245 |
Input:
872+362
Target:
| Input:
932+623
Target:
<scratch>
[9,3,2] has 3 digits.
[6,2,3] has 3 digits.
[9,3,2] + [6,2,3] , A=[] , C=0 , 2+3+0=5 , A->5 , C->0
[9,3] + [6,2] , A=[5] , C=0 , 3+2+0=5 , A->5 , C->0
[9] + [6] , A=[5,5] , C=0 , 9+6+0=15 , A->5 , C->1
[] + [] , A=[5,5,5] C=1 , END
</scratch>
1555
</s> | 821 |
Input:
311+485
Target:
| Input:
399+458
Target:
<scratch>
[3,9,9] has 3 digits.
[4,5,8] has 3 digits.
[3,9,9] + [4,5,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[3,9] + [4,5] , A=[7] , C=1 , 9+5+1=15 , A->5 , C->1
[3] + [4] , A=[5,7] , C=1 , 3+4+1=8 , A->8 , C->0
[] + [] , A=[8,5,7] C=0 , END
</scratch>
857
</s> | 1569 |
Input:
132+407
Target:
| Input:
651+530
Target:
<scratch>
[6,5,1] has 3 digits.
[5,3,0] has 3 digits.
[6,5,1] + [5,3,0] , A=[] , C=0 , 1+0+0=1 , A->1 , C->0
[6,5] + [5,3] , A=[1] , C=0 , 5+3+0=8 , A->8 , C->0
[6] + [5] , A=[8,1] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,8,1] C=1 , END
</scratch>
1181
</s> | 1322 |
Input:
797+235
Target:
| Input:
464+894
Target:
<scratch>
[4,6,4] has 3 digits.
[8,9,4] has 3 digits.
[4,6,4] + [8,9,4] , A=[] , C=0 , 4+4+0=8 , A->8 , C->0
[4,6] + [8,9] , A=[8] , C=0 , 6+9+0=15 , A->5 , C->1
[4] + [8] , A=[5,8] , C=1 , 4+8+1=13 , A->3 , C->1
[] + [] , A=[3,5,8] C=1 , END
</scratch>
1358
</s> | 958 |
Input:
112+876
Target:
| Input:
473+999
Target:
<scratch>
[4,7,3] has 3 digits.
[9,9,9] has 3 digits.
[4,7,3] + [9,9,9] , A=[] , C=0 , 3+9+0=12 , A->2 , C->1
[4,7] + [9,9] , A=[2] , C=1 , 7+9+1=17 , A->7 , C->1
[4] + [9] , A=[7,2] , C=1 , 4+9+1=14 , A->4 , C->1
[] + [] , A=[4,7,2] C=1 , END
</scratch>
1472
</s> | 1669 |
Input:
322+597
Target:
| Input:
406+363
Target:
<scratch>
[4,0,6] has 3 digits.
[3,6,3] has 3 digits.
[4,0,6] + [3,6,3] , A=[] , C=0 , 6+3+0=9 , A->9 , C->0
[4,0] + [3,6] , A=[9] , C=0 , 0+6+0=6 , A->6 , C->0
[4] + [3] , A=[6,9] , C=0 , 4+3+0=7 , A->7 , C->0
[] + [] , A=[7,6,9] C=0 , END
</scratch>
769
</s> | 1590 |
Input:
559+481
Target:
| Input:
926+707
Target:
<scratch>
[9,2,6] has 3 digits.
[7,0,7] has 3 digits.
[9,2,6] + [7,0,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[9,2] + [7,0] , A=[3] , C=1 , 2+0+1=3 , A->3 , C->0
[9] + [7] , A=[3,3] , C=0 , 9+7+0=16 , A->6 , C->1
[] + [] , A=[6,3,3] C=1 , END
</scratch>
1633
</s> | 635 |
Input:
872+356
Target:
| Input:
654+220
Target:
<scratch>
[6,5,4] has 3 digits.
[2,2,0] has 3 digits.
[6,5,4] + [2,2,0] , A=[] , C=0 , 4+0+0=4 , A->4 , C->0
[6,5] + [2,2] , A=[4] , C=0 , 5+2+0=7 , A->7 , C->0
[6] + [2] , A=[7,4] , C=0 , 6+2+0=8 , A->8 , C->0
[] + [] , A=[8,7,4] C=0 , END
</scratch>
874
</s> | 1164 |
Input:
837+844
Target:
| Input:
561+657
Target:
<scratch>
[5,6,1] has 3 digits.
[6,5,7] has 3 digits.
[5,6,1] + [6,5,7] , A=[] , C=0 , 1+7+0=8 , A->8 , C->0
[5,6] + [6,5] , A=[8] , C=0 , 6+5+0=11 , A->1 , C->1
[5] + [6] , A=[1,8] , C=1 , 5+6+1=12 , A->2 , C->1
[] + [] , A=[2,1,8] C=1 , END
</scratch>
1218
</s> | 921 |
Input:
216+344
Target:
| Input:
671+658
Target:
<scratch>
[6,7,1] has 3 digits.
[6,5,8] has 3 digits.
[6,7,1] + [6,5,8] , A=[] , C=0 , 1+8+0=9 , A->9 , C->0
[6,7] + [6,5] , A=[9] , C=0 , 7+5+0=12 , A->2 , C->1
[6] + [6] , A=[2,9] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,2,9] C=1 , END
</scratch>
1329
</s> | 789 |
Input:
120+375
Target:
| Input:
362+374
Target:
<scratch>
[3,6,2] has 3 digits.
[3,7,4] has 3 digits.
[3,6,2] + [3,7,4] , A=[] , C=0 , 2+4+0=6 , A->6 , C->0
[3,6] + [3,7] , A=[6] , C=0 , 6+7+0=13 , A->3 , C->1
[3] + [3] , A=[3,6] , C=1 , 3+3+1=7 , A->7 , C->0
[] + [] , A=[7,3,6] C=0 , END
</scratch>
736
</s> | 851 |
Input:
405+679
Target:
| Input:
448+817
Target:
<scratch>
[4,4,8] has 3 digits.
[8,1,7] has 3 digits.
[4,4,8] + [8,1,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[4,4] + [8,1] , A=[5] , C=1 , 4+1+1=6 , A->6 , C->0
[4] + [8] , A=[6,5] , C=0 , 4+8+0=12 , A->2 , C->1
[] + [] , A=[2,6,5] C=1 , END
</scratch>
1265
</s> | 1402 |
Input:
510+630
Target:
| Input:
596+289
Target:
<scratch>
[5,9,6] has 3 digits.
[2,8,9] has 3 digits.
[5,9,6] + [2,8,9] , A=[] , C=0 , 6+9+0=15 , A->5 , C->1
[5,9] + [2,8] , A=[5] , C=1 , 9+8+1=18 , A->8 , C->1
[5] + [2] , A=[8,5] , C=1 , 5+2+1=8 , A->8 , C->0
[] + [] , A=[8,8,5] C=0 , END
</scratch>
885
</s> | 1929 |
Input:
644+742
Target:
| Input:
330+323
Target:
<scratch>
[3,3,0] has 3 digits.
[3,2,3] has 3 digits.
[3,3,0] + [3,2,3] , A=[] , C=0 , 0+3+0=3 , A->3 , C->0
[3,3] + [3,2] , A=[3] , C=0 , 3+2+0=5 , A->5 , C->0
[3] + [3] , A=[5,3] , C=0 , 3+3+0=6 , A->6 , C->0
[] + [] , A=[6,5,3] C=0 , END
</scratch>
653
</s> | 1141 |
Input:
185+764
Target:
| Input:
491+831
Target:
<scratch>
[4,9,1] has 3 digits.
[8,3,1] has 3 digits.
[4,9,1] + [8,3,1] , A=[] , C=0 , 1+1+0=2 , A->2 , C->0
[4,9] + [8,3] , A=[2] , C=0 , 9+3+0=12 , A->2 , C->1
[4] + [8] , A=[2,2] , C=1 , 4+8+1=13 , A->3 , C->1
[] + [] , A=[3,2,2] C=1 , END
</scratch>
1322
</s> | 1048 |
Input:
692+395
Target:
| Input:
108+785
Target:
<scratch>
[1,0,8] has 3 digits.
[7,8,5] has 3 digits.
[1,0,8] + [7,8,5] , A=[] , C=0 , 8+5+0=13 , A->3 , C->1
[1,0] + [7,8] , A=[3] , C=1 , 0+8+1=9 , A->9 , C->0
[1] + [7] , A=[9,3] , C=0 , 1+7+0=8 , A->8 , C->0
[] + [] , A=[8,9,3] C=0 , END
</scratch>
893
</s> | 988 |
Input:
148+659
Target:
| Input:
767+449
Target:
<scratch>
[7,6,7] has 3 digits.
[4,4,9] has 3 digits.
[7,6,7] + [4,4,9] , A=[] , C=0 , 7+9+0=16 , A->6 , C->1
[7,6] + [4,4] , A=[6] , C=1 , 6+4+1=11 , A->1 , C->1
[7] + [4] , A=[1,6] , C=1 , 7+4+1=12 , A->2 , C->1
[] + [] , A=[2,1,6] C=1 , END
</scratch>
1216
</s> | 1835 |
Input:
207+750
Target:
| Input:
376+356
Target:
<scratch>
[3,7,6] has 3 digits.
[3,5,6] has 3 digits.
[3,7,6] + [3,5,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[3,7] + [3,5] , A=[2] , C=1 , 7+5+1=13 , A->3 , C->1
[3] + [3] , A=[3,2] , C=1 , 3+3+1=7 , A->7 , C->0
[] + [] , A=[7,3,2] C=0 , END
</scratch>
732
</s> | 285 |
Input:
608+253
Target:
| Input:
700+380
Target:
<scratch>
[7,0,0] has 3 digits.
[3,8,0] has 3 digits.
[7,0,0] + [3,8,0] , A=[] , C=0 , 0+0+0=0 , A->0 , C->0
[7,0] + [3,8] , A=[0] , C=0 , 0+8+0=8 , A->8 , C->0
[7] + [3] , A=[8,0] , C=0 , 7+3+0=10 , A->0 , C->1
[] + [] , A=[0,8,0] C=1 , END
</scratch>
1080
</s> | 847 |
Input:
775+140
Target:
| Input:
392+438
Target:
<scratch>
[3,9,2] has 3 digits.
[4,3,8] has 3 digits.
[3,9,2] + [4,3,8] , A=[] , C=0 , 2+8+0=10 , A->0 , C->1
[3,9] + [4,3] , A=[0] , C=1 , 9+3+1=13 , A->3 , C->1
[3] + [4] , A=[3,0] , C=1 , 3+4+1=8 , A->8 , C->0
[] + [] , A=[8,3,0] C=0 , END
</scratch>
830
</s> | 685 |
Input:
114+249
Target:
| Input:
177+504
Target:
<scratch>
[1,7,7] has 3 digits.
[5,0,4] has 3 digits.
[1,7,7] + [5,0,4] , A=[] , C=0 , 7+4+0=11 , A->1 , C->1
[1,7] + [5,0] , A=[1] , C=1 , 7+0+1=8 , A->8 , C->0
[1] + [5] , A=[8,1] , C=0 , 1+5+0=6 , A->6 , C->0
[] + [] , A=[6,8,1] C=0 , END
</scratch>
681
</s> | 432 |
Input:
170+748
Target:
| Input:
939+949
Target:
<scratch>
[9,3,9] has 3 digits.
[9,4,9] has 3 digits.
[9,3,9] + [9,4,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[9,3] + [9,4] , A=[8] , C=1 , 3+4+1=8 , A->8 , C->0
[9] + [9] , A=[8,8] , C=0 , 9+9+0=18 , A->8 , C->1
[] + [] , A=[8,8,8] C=1 , END
</scratch>
1888
</s> | 1493 |
Input:
277+169
Target:
| Input:
765+758
Target:
<scratch>
[7,6,5] has 3 digits.
[7,5,8] has 3 digits.
[7,6,5] + [7,5,8] , A=[] , C=0 , 5+8+0=13 , A->3 , C->1
[7,6] + [7,5] , A=[3] , C=1 , 6+5+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
</s> | 1709 |
Input:
202+463
Target:
| Input:
338+570
Target:
<scratch>
[3,3,8] has 3 digits.
[5,7,0] has 3 digits.
[3,3,8] + [5,7,0] , A=[] , C=0 , 8+0+0=8 , A->8 , C->0
[3,3] + [5,7] , A=[8] , C=0 , 3+7+0=10 , A->0 , C->1
[3] + [5] , A=[0,8] , C=1 , 3+5+1=9 , A->9 , C->0
[] + [] , A=[9,0,8] C=0 , END
</scratch>
908
</s> | 794 |
Input:
945+946
Target:
| Input:
490+238
Target:
<scratch>
[4,9,0] has 3 digits.
[2,3,8] has 3 digits.
[4,9,0] + [2,3,8] , A=[] , C=0 , 0+8+0=8 , A->8 , C->0
[4,9] + [2,3] , A=[8] , C=0 , 9+3+0=12 , A->2 , C->1
[4] + [2] , A=[2,8] , C=1 , 4+2+1=7 , A->7 , C->0
[] + [] , A=[7,2,8] C=0 , END
</scratch>
728
</s> | 358 |
Input:
232+625
Target:
| Input:
178+683
Target:
<scratch>
[1,7,8] has 3 digits.
[6,8,3] has 3 digits.
[1,7,8] + [6,8,3] , A=[] , C=0 , 8+3+0=11 , A->1 , C->1
[1,7] + [6,8] , A=[1] , C=1 , 7+8+1=16 , A->6 , C->1
[1] + [6] , A=[6,1] , C=1 , 1+6+1=8 , A->8 , C->0
[] + [] , A=[8,6,1] C=0 , END
</scratch>
861
</s> | 1568 |
Input:
188+687
Target:
| Input:
773+766
Target:
<scratch>
[7,7,3] has 3 digits.
[7,6,6] has 3 digits.
[7,7,3] + [7,6,6] , A=[] , C=0 , 3+6+0=9 , A->9 , C->0
[7,7] + [7,6] , A=[9] , C=0 , 7+6+0=13 , A->3 , C->1
[7] + [7] , A=[3,9] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,3,9] C=1 , END
</scratch>
1539
</s> | 1804 |
Input:
697+280
Target:
| Input:
404+718
Target:
<scratch>
[4,0,4] has 3 digits.
[7,1,8] has 3 digits.
[4,0,4] + [7,1,8] , A=[] , C=0 , 4+8+0=12 , A->2 , C->1
[4,0] + [7,1] , A=[2] , C=1 , 0+1+1=2 , A->2 , C->0
[4] + [7] , A=[2,2] , C=0 , 4+7+0=11 , A->1 , C->1
[] + [] , A=[1,2,2] C=1 , END
</scratch>
1122
</s> | 1270 |
Input:
708+688
Target:
| Input:
159+870
Target:
<scratch>
[1,5,9] has 3 digits.
[8,7,0] has 3 digits.
[1,5,9] + [8,7,0] , A=[] , C=0 , 9+0+0=9 , A->9 , C->0
[1,5] + [8,7] , A=[9] , C=0 , 5+7+0=12 , A->2 , C->1
[1] + [8] , A=[2,9] , C=1 , 1+8+1=10 , A->0 , C->1
[] + [] , A=[0,2,9] C=1 , END
</scratch>
1029
</s> | 902 |
Input:
179+350
Target:
| Input:
763+750
Target:
<scratch>
[7,6,3] has 3 digits.
[7,5,0] has 3 digits.
[7,6,3] + [7,5,0] , A=[] , C=0 , 3+0+0=3 , A->3 , C->0
[7,6] + [7,5] , A=[3] , C=0 , 6+5+0=11 , A->1 , C->1
[7] + [7] , A=[1,3] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,1,3] C=1 , END
</scratch>
1513
</s> | 486 |
Input:
932+761
Target:
| Input:
411+550
Target:
<scratch>
[4,1,1] has 3 digits.
[5,5,0] has 3 digits.
[4,1,1] + [5,5,0] , A=[] , C=0 , 1+0+0=1 , A->1 , C->0
[4,1] + [5,5] , A=[1] , C=0 , 1+5+0=6 , A->6 , C->0
[4] + [5] , A=[6,1] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,6,1] C=0 , END
</scratch>
961
</s> | 867 |
Input:
304+926
Target:
| Input:
741+986
Target:
<scratch>
[7,4,1] has 3 digits.
[9,8,6] has 3 digits.
[7,4,1] + [9,8,6] , A=[] , C=0 , 1+6+0=7 , A->7 , C->0
[7,4] + [9,8] , A=[7] , C=0 , 4+8+0=12 , A->2 , C->1
[7] + [9] , A=[2,7] , C=1 , 7+9+1=17 , A->7 , C->1
[] + [] , A=[7,2,7] C=1 , END
</scratch>
1727
</s> | 1614 |
Input:
570+757
Target:
| Input:
785+793
Target:
<scratch>
[7,8,5] has 3 digits.
[7,9,3] has 3 digits.
[7,8,5] + [7,9,3] , A=[] , C=0 , 5+3+0=8 , A->8 , C->0
[7,8] + [7,9] , A=[8] , C=0 , 8+9+0=17 , A->7 , C->1
[7] + [7] , A=[7,8] , C=1 , 7+7+1=15 , A->5 , C->1
[] + [] , A=[5,7,8] C=1 , END
</scratch>
1578
</s> | 1960 |
Input:
291+927
Target:
| Input:
520+281
Target:
<scratch>
[5,2,0] has 3 digits.
[2,8,1] has 3 digits.
[5,2,0] + [2,8,1] , A=[] , C=0 , 0+1+0=1 , A->1 , C->0
[5,2] + [2,8] , A=[1] , C=0 , 2+8+0=10 , A->0 , C->1
[5] + [2] , A=[0,1] , C=1 , 5+2+1=8 , A->8 , C->0
[] + [] , A=[8,0,1] C=0 , END
</scratch>
801
</s> | 1071 |
Input:
139+768
Target:
| Input:
921+258
Target:
<scratch>
[9,2,1] has 3 digits.
[2,5,8] has 3 digits.
[9,2,1] + [2,5,8] , A=[] , C=0 , 1+8+0=9 , A->9 , C->0
[9,2] + [2,5] , A=[9] , C=0 , 2+5+0=7 , A->7 , C->0
[9] + [2] , A=[7,9] , C=0 , 9+2+0=11 , A->1 , C->1
[] + [] , A=[1,7,9] C=1 , END
</scratch>
1179
</s> | 921 |
Input:
849+324
Target:
| Input:
440+506
Target:
<scratch>
[4,4,0] has 3 digits.
[5,0,6] has 3 digits.
[4,4,0] + [5,0,6] , A=[] , C=0 , 0+6+0=6 , A->6 , C->0
[4,4] + [5,0] , A=[6] , C=0 , 4+0+0=4 , A->4 , C->0
[4] + [5] , A=[4,6] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,4,6] C=0 , END
</scratch>
946
</s> | 914 |
Input:
742+116
Target:
| Input:
478+759
Target:
<scratch>
[4,7,8] has 3 digits.
[7,5,9] has 3 digits.
[4,7,8] + [7,5,9] , A=[] , C=0 , 8+9+0=17 , A->7 , C->1
[4,7] + [7,5] , A=[7] , C=1 , 7+5+1=13 , A->3 , C->1
[4] + [7] , A=[3,7] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,3,7] C=1 , END
</scratch>
1237
</s> | 409 |
Input:
243+417
Target:
| Input:
633+531
Target:
<scratch>
[6,3,3] has 3 digits.
[5,3,1] has 3 digits.
[6,3,3] + [5,3,1] , A=[] , C=0 , 3+1+0=4 , A->4 , C->0
[6,3] + [5,3] , A=[4] , C=0 , 3+3+0=6 , A->6 , C->0
[6] + [5] , A=[6,4] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,6,4] C=1 , END
</scratch>
1164
</s> | 1772 |
Input:
542+412
Target:
| Input:
604+184
Target:
<scratch>
[6,0,4] has 3 digits.
[1,8,4] has 3 digits.
[6,0,4] + [1,8,4] , A=[] , C=0 , 4+4+0=8 , A->8 , C->0
[6,0] + [1,8] , A=[8] , C=0 , 0+8+0=8 , A->8 , C->0
[6] + [1] , A=[8,8] , C=0 , 6+1+0=7 , A->7 , C->0
[] + [] , A=[7,8,8] C=0 , END
</scratch>
788
</s> | 499 |
Input:
706+261
Target:
| Input:
173+943
Target:
<scratch>
[1,7,3] has 3 digits.
[9,4,3] has 3 digits.
[1,7,3] + [9,4,3] , A=[] , C=0 , 3+3+0=6 , A->6 , C->0
[1,7] + [9,4] , A=[6] , C=0 , 7+4+0=11 , A->1 , C->1
[1] + [9] , A=[1,6] , C=1 , 1+9+1=11 , A->1 , C->1
[] + [] , A=[1,1,6] C=1 , END
</scratch>
1116
</s> | 1704 |
Input:
695+123
Target:
| Input:
379+145
Target:
<scratch>
[3,7,9] has 3 digits.
[1,4,5] has 3 digits.
[3,7,9] + [1,4,5] , A=[] , C=0 , 9+5+0=14 , A->4 , C->1
[3,7] + [1,4] , A=[4] , C=1 , 7+4+1=12 , A->2 , C->1
[3] + [1] , A=[2,4] , C=1 , 3+1+1=5 , A->5 , C->0
[] + [] , A=[5,2,4] C=0 , END
</scratch>
524
</s> | 1738 |
Input:
760+980
Target:
| Input:
754+821
Target:
<scratch>
[7,5,4] has 3 digits.
[8,2,1] has 3 digits.
[7,5,4] + [8,2,1] , A=[] , C=0 , 4+1+0=5 , A->5 , C->0
[7,5] + [8,2] , A=[5] , C=0 , 5+2+0=7 , A->7 , C->0
[7] + [8] , A=[7,5] , C=0 , 7+8+0=15 , A->5 , C->1
[] + [] , A=[5,7,5] C=1 , END
</scratch>
1575
</s> | 740 |
Input:
280+163
Target:
| Input:
361+844
Target:
<scratch>
[3,6,1] has 3 digits.
[8,4,4] has 3 digits.
[3,6,1] + [8,4,4] , A=[] , C=0 , 1+4+0=5 , A->5 , C->0
[3,6] + [8,4] , A=[5] , C=0 , 6+4+0=10 , A->0 , C->1
[3] + [8] , A=[0,5] , C=1 , 3+8+1=12 , A->2 , C->1
[] + [] , A=[2,0,5] C=1 , END
</scratch>
1205
</s> | 1307 |
Input:
440+788
Target:
| Input:
413+214
Target:
<scratch>
[4,1,3] has 3 digits.
[2,1,4] has 3 digits.
[4,1,3] + [2,1,4] , A=[] , C=0 , 3+4+0=7 , A->7 , C->0
[4,1] + [2,1] , A=[7] , C=0 , 1+1+0=2 , A->2 , C->0
[4] + [2] , A=[2,7] , C=0 , 4+2+0=6 , A->6 , C->0
[] + [] , A=[6,2,7] C=0 , END
</scratch>
627
</s> | 958 |
Input:
410+931
Target:
| Input:
641+434
Target:
<scratch>
[6,4,1] has 3 digits.
[4,3,4] has 3 digits.
[6,4,1] + [4,3,4] , A=[] , C=0 , 1+4+0=5 , A->5 , C->0
[6,4] + [4,3] , A=[5] , C=0 , 4+3+0=7 , A->7 , C->0
[6] + [4] , A=[7,5] , C=0 , 6+4+0=10 , A->0 , C->1
[] + [] , A=[0,7,5] C=1 , END
</scratch>
1075
</s> | 1310 |
Input:
133+900
Target:
| Input:
109+658
Target:
<scratch>
[1,0,9] has 3 digits.
[6,5,8] has 3 digits.
[1,0,9] + [6,5,8] , A=[] , C=0 , 9+8+0=17 , A->7 , C->1
[1,0] + [6,5] , A=[7] , C=1 , 0+5+1=6 , A->6 , C->0
[1] + [6] , A=[6,7] , C=0 , 1+6+0=7 , A->7 , C->0
[] + [] , A=[7,6,7] C=0 , END
</scratch>
767
</s> | 725 |
Input:
214+942
Target:
| Input:
641+549
Target:
<scratch>
[6,4,1] has 3 digits.
[5,4,9] has 3 digits.
[6,4,1] + [5,4,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[6,4] + [5,4] , A=[0] , C=1 , 4+4+1=9 , A->9 , C->0
[6] + [5] , A=[9,0] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,9,0] C=1 , END
</scratch>
1190
</s> | 1697 |
Input:
659+812
Target:
| Input:
558+562
Target:
<scratch>
[5,5,8] has 3 digits.
[5,6,2] has 3 digits.
[5,5,8] + [5,6,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[5,5] + [5,6] , A=[0] , C=1 , 5+6+1=12 , A->2 , C->1
[5] + [5] , A=[2,0] , C=1 , 5+5+1=11 , A->1 , C->1
[] + [] , A=[1,2,0] C=1 , END
</scratch>
1120
</s> | 1885 |
Input:
609+312
Target:
| Input:
834+926
Target:
<scratch>
[8,3,4] has 3 digits.
[9,2,6] has 3 digits.
[8,3,4] + [9,2,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[8,3] + [9,2] , A=[0] , C=1 , 3+2+1=6 , A->6 , C->0
[8] + [9] , A=[6,0] , C=0 , 8+9+0=17 , A->7 , C->1
[] + [] , A=[7,6,0] C=1 , END
</scratch>
1760
</s> | 795 |
Input:
584+543
Target:
| Input:
534+450
Target:
<scratch>
[5,3,4] has 3 digits.
[4,5,0] has 3 digits.
[5,3,4] + [4,5,0] , A=[] , C=0 , 4+0+0=4 , A->4 , C->0
[5,3] + [4,5] , A=[4] , C=0 , 3+5+0=8 , A->8 , C->0
[5] + [4] , A=[8,4] , C=0 , 5+4+0=9 , A->9 , C->0
[] + [] , A=[9,8,4] C=0 , END
</scratch>
984
</s> | 1090 |
Input:
444+921
Target:
| Input:
227+262
Target:
<scratch>
[2,2,7] has 3 digits.
[2,6,2] has 3 digits.
[2,2,7] + [2,6,2] , A=[] , C=0 , 7+2+0=9 , A->9 , C->0
[2,2] + [2,6] , A=[9] , C=0 , 2+6+0=8 , A->8 , C->0
[2] + [2] , A=[8,9] , C=0 , 2+2+0=4 , A->4 , C->0
[] + [] , A=[4,8,9] C=0 , END
</scratch>
489
</s> | 1661 |
Input:
233+712
Target:
| Input:
356+616
Target:
<scratch>
[3,5,6] has 3 digits.
[6,1,6] has 3 digits.
[3,5,6] + [6,1,6] , A=[] , C=0 , 6+6+0=12 , A->2 , C->1
[3,5] + [6,1] , A=[2] , C=1 , 5+1+1=7 , A->7 , C->0
[3] + [6] , A=[7,2] , C=0 , 3+6+0=9 , A->9 , C->0
[] + [] , A=[9,7,2] C=0 , END
</scratch>
972
</s> | 596 |
Input:
374+995
Target:
| Input:
234+424
Target:
<scratch>
[2,3,4] has 3 digits.
[4,2,4] has 3 digits.
[2,3,4] + [4,2,4] , A=[] , C=0 , 4+4+0=8 , A->8 , C->0
[2,3] + [4,2] , A=[8] , C=0 , 3+2+0=5 , A->5 , C->0
[2] + [4] , A=[5,8] , C=0 , 2+4+0=6 , A->6 , C->0
[] + [] , A=[6,5,8] C=0 , END
</scratch>
658
</s> | 1366 |
Input:
164+955
Target:
| Input:
406+507
Target:
<scratch>
[4,0,6] has 3 digits.
[5,0,7] has 3 digits.
[4,0,6] + [5,0,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[4,0] + [5,0] , A=[3] , C=1 , 0+0+1=1 , A->1 , C->0
[4] + [5] , A=[1,3] , C=0 , 4+5+0=9 , A->9 , C->0
[] + [] , A=[9,1,3] C=0 , END
</scratch>
913
</s> | 906 |
Input:
376+850
Target:
| Input:
312+415
Target:
<scratch>
[3,1,2] has 3 digits.
[4,1,5] has 3 digits.
[3,1,2] + [4,1,5] , A=[] , C=0 , 2+5+0=7 , A->7 , C->0
[3,1] + [4,1] , A=[7] , C=0 , 1+1+0=2 , A->2 , C->0
[3] + [4] , A=[2,7] , C=0 , 3+4+0=7 , A->7 , C->0
[] + [] , A=[7,2,7] C=0 , END
</scratch>
727
</s> | 965 |
Input:
576+215
Target:
| Input:
557+315
Target:
<scratch>
[5,5,7] has 3 digits.
[3,1,5] has 3 digits.
[5,5,7] + [3,1,5] , A=[] , C=0 , 7+5+0=12 , A->2 , C->1
[5,5] + [3,1] , A=[2] , C=1 , 5+1+1=7 , A->7 , C->0
[5] + [3] , A=[7,2] , C=0 , 5+3+0=8 , A->8 , C->0
[] + [] , A=[8,7,2] C=0 , END
</scratch>
872
</s> | 1432 |
Input:
376+952
Target:
| Input:
641+665
Target:
<scratch>
[6,4,1] has 3 digits.
[6,6,5] has 3 digits.
[6,4,1] + [6,6,5] , A=[] , C=0 , 1+5+0=6 , A->6 , C->0
[6,4] + [6,6] , A=[6] , C=0 , 4+6+0=10 , A->0 , C->1
[6] + [6] , A=[0,6] , C=1 , 6+6+1=13 , A->3 , C->1
[] + [] , A=[3,0,6] C=1 , END
</scratch>
1306
</s> | 957 |
Input:
122+854
Target:
| Input:
301+575
Target:
<scratch>
[3,0,1] has 3 digits.
[5,7,5] has 3 digits.
[3,0,1] + [5,7,5] , A=[] , C=0 , 1+5+0=6 , A->6 , C->0
[3,0] + [5,7] , A=[6] , C=0 , 0+7+0=7 , A->7 , C->0
[3] + [5] , A=[7,6] , C=0 , 3+5+0=8 , A->8 , C->0
[] + [] , A=[8,7,6] C=0 , END
</scratch>
876
</s> | 493 |
Input:
518+247
Target:
| Input:
411+223
Target:
<scratch>
[4,1,1] has 3 digits.
[2,2,3] has 3 digits.
[4,1,1] + [2,2,3] , A=[] , C=0 , 1+3+0=4 , A->4 , C->0
[4,1] + [2,2] , A=[4] , C=0 , 1+2+0=3 , A->3 , C->0
[4] + [2] , A=[3,4] , C=0 , 4+2+0=6 , A->6 , C->0
[] + [] , A=[6,3,4] C=0 , END
</scratch>
634
</s> | 1346 |
Input:
512+260
Target:
| Input:
216+313
Target:
<scratch>
[2,1,6] has 3 digits.
[3,1,3] has 3 digits.
[2,1,6] + [3,1,3] , A=[] , C=0 , 6+3+0=9 , A->9 , C->0
[2,1] + [3,1] , A=[9] , C=0 , 1+1+0=2 , A->2 , C->0
[2] + [3] , A=[2,9] , C=0 , 2+3+0=5 , A->5 , C->0
[] + [] , A=[5,2,9] C=0 , END
</scratch>
529
</s> | 750 |
Input:
875+815
Target:
| Input:
305+937
Target:
<scratch>
[3,0,5] has 3 digits.
[9,3,7] has 3 digits.
[3,0,5] + [9,3,7] , A=[] , C=0 , 5+7+0=12 , A->2 , C->1
[3,0] + [9,3] , A=[2] , C=1 , 0+3+1=4 , A->4 , C->0
[3] + [9] , A=[4,2] , C=0 , 3+9+0=12 , A->2 , C->1
[] + [] , A=[2,4,2] C=1 , END
</scratch>
1242
</s> | 1287 |
Input:
314+479
Target:
| Input:
461+499
Target:
<scratch>
[4,6,1] has 3 digits.
[4,9,9] has 3 digits.
[4,6,1] + [4,9,9] , A=[] , C=0 , 1+9+0=10 , A->0 , C->1
[4,6] + [4,9] , A=[0] , C=1 , 6+9+1=16 , A->6 , C->1
[4] + [4] , A=[6,0] , C=1 , 4+4+1=9 , A->9 , C->0
[] + [] , A=[9,6,0] C=0 , END
</scratch>
960
</s> | 1302 |
Input:
617+544
Target:
| Input:
103+530
Target:
<scratch>
[1,0,3] has 3 digits.
[5,3,0] has 3 digits.
[1,0,3] + [5,3,0] , A=[] , C=0 , 3+0+0=3 , A->3 , C->0
[1,0] + [5,3] , A=[3] , C=0 , 0+3+0=3 , A->3 , C->0
[1] + [5] , A=[3,3] , C=0 , 1+5+0=6 , A->6 , C->0
[] + [] , A=[6,3,3] C=0 , END
</scratch>
633
</s> | 1967 |
Input:
511+885
Target:
| Input:
516+304
Target:
<scratch>
[5,1,6] has 3 digits.
[3,0,4] has 3 digits.
[5,1,6] + [3,0,4] , A=[] , C=0 , 6+4+0=10 , A->0 , C->1
[5,1] + [3,0] , A=[0] , C=1 , 1+0+1=2 , A->2 , C->0
[5] + [3] , A=[2,0] , C=0 , 5+3+0=8 , A->8 , C->0
[] + [] , A=[8,2,0] C=0 , END
</scratch>
820
</s> | 927 |
Input:
577+864
Target:
| Input:
644+583
Target:
<scratch>
[6,4,4] has 3 digits.
[5,8,3] has 3 digits.
[6,4,4] + [5,8,3] , A=[] , C=0 , 4+3+0=7 , A->7 , C->0
[6,4] + [5,8] , A=[7] , C=0 , 4+8+0=12 , A->2 , C->1
[6] + [5] , A=[2,7] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,2,7] C=1 , END
</scratch>
1227
</s> | 951 |
Input:
456+292
Target:
| Input:
694+544
Target:
<scratch>
[6,9,4] has 3 digits.
[5,4,4] has 3 digits.
[6,9,4] + [5,4,4] , A=[] , C=0 , 4+4+0=8 , A->8 , C->0
[6,9] + [5,4] , A=[8] , C=0 , 9+4+0=13 , A->3 , C->1
[6] + [5] , A=[3,8] , C=1 , 6+5+1=12 , A->2 , C->1
[] + [] , A=[2,3,8] C=1 , END
</scratch>
1238
</s> | 1243 |
Input:
474+240
Target:
| Input:
932+509
Target:
<scratch>
[9,3,2] has 3 digits.
[5,0,9] has 3 digits.
[9,3,2] + [5,0,9] , A=[] , C=0 , 2+9+0=11 , A->1 , C->1
[9,3] + [5,0] , A=[1] , C=1 , 3+0+1=4 , A->4 , C->0
[9] + [5] , A=[4,1] , C=0 , 9+5+0=14 , A->4 , C->1
[] + [] , A=[4,4,1] C=1 , END
</scratch>
1441
</s> | 1116 |
Input:
408+258
Target:
| Input:
843+705
Target:
<scratch>
[8,4,3] has 3 digits.
[7,0,5] has 3 digits.
[8,4,3] + [7,0,5] , A=[] , C=0 , 3+5+0=8 , A->8 , C->0
[8,4] + [7,0] , A=[8] , C=0 , 4+0+0=4 , A->4 , C->0
[8] + [7] , A=[4,8] , C=0 , 8+7+0=15 , A->5 , C->1
[] + [] , A=[5,4,8] C=1 , END
</scratch>
1548
</s> | 913 |
Input:
783+155
Target:
| Input:
578+201
Target:
<scratch>
[5,7,8] has 3 digits.
[2,0,1] has 3 digits.
[5,7,8] + [2,0,1] , A=[] , C=0 , 8+1+0=9 , A->9 , C->0
[5,7] + [2,0] , A=[9] , C=0 , 7+0+0=7 , A->7 , C->0
[5] + [2] , A=[7,9] , C=0 , 5+2+0=7 , A->7 , C->0
[] + [] , A=[7,7,9] C=0 , END
</scratch>
779
</s> | 657 |
Input:
987+798
Target:
| Input:
510+220
Target:
<scratch>
[5,1,0] has 3 digits.
[2,2,0] has 3 digits.
[5,1,0] + [2,2,0] , A=[] , C=0 , 0+0+0=0 , A->0 , C->0
[5,1] + [2,2] , A=[0] , C=0 , 1+2+0=3 , A->3 , C->0
[5] + [2] , A=[3,0] , C=0 , 5+2+0=7 , A->7 , C->0
[] + [] , A=[7,3,0] C=0 , END
</scratch>
730
</s> | 410 |
Input:
383+575
Target:
| Input:
259+289
Target:
<scratch>
[2,5,9] has 3 digits.
[2,8,9] has 3 digits.
[2,5,9] + [2,8,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[2,5] + [2,8] , A=[8] , C=1 , 5+8+1=14 , A->4 , C->1
[2] + [2] , A=[4,8] , C=1 , 2+2+1=5 , A->5 , C->0
[] + [] , A=[5,4,8] C=0 , END
</scratch>
548
</s> | 1392 |
Input:
263+130
Target:
| Input:
254+896
Target:
<scratch>
[2,5,4] has 3 digits.
[8,9,6] has 3 digits.
[2,5,4] + [8,9,6] , A=[] , C=0 , 4+6+0=10 , A->0 , C->1
[2,5] + [8,9] , A=[0] , C=1 , 5+9+1=15 , A->5 , C->1
[2] + [8] , A=[5,0] , C=1 , 2+8+1=11 , A->1 , C->1
[] + [] , A=[1,5,0] C=1 , END
</scratch>
1150
</s> | 987 |
Input:
613+582
Target:
| Input:
508+736
Target:
<scratch>
[5,0,8] has 3 digits.
[7,3,6] has 3 digits.
[5,0,8] + [7,3,6] , A=[] , C=0 , 8+6+0=14 , A->4 , C->1
[5,0] + [7,3] , A=[4] , C=1 , 0+3+1=4 , A->4 , C->0
[5] + [7] , A=[4,4] , C=0 , 5+7+0=12 , A->2 , C->1
[] + [] , A=[2,4,4] C=1 , END
</scratch>
1244
</s> | 1507 |
Input:
748+287
Target:
| Input:
559+612
Target:
<scratch>
[5,5,9] has 3 digits.
[6,1,2] has 3 digits.
[5,5,9] + [6,1,2] , A=[] , C=0 , 9+2+0=11 , A->1 , C->1
[5,5] + [6,1] , A=[1] , C=1 , 5+1+1=7 , A->7 , C->0
[5] + [6] , A=[7,1] , C=0 , 5+6+0=11 , A->1 , C->1
[] + [] , A=[1,7,1] C=1 , END
</scratch>
1171
</s> | 1380 |
Input:
367+373
Target:
| Input:
134+624
Target:
<scratch>
[1,3,4] has 3 digits.
[6,2,4] has 3 digits.
[1,3,4] + [6,2,4] , A=[] , C=0 , 4+4+0=8 , A->8 , C->0
[1,3] + [6,2] , A=[8] , C=0 , 3+2+0=5 , A->5 , C->0
[1] + [6] , A=[5,8] , C=0 , 1+6+0=7 , A->7 , C->0
[] + [] , A=[7,5,8] C=0 , END
</scratch>
758
</s> | 1149 |
Input:
414+747
Target:
| Input:
753+328
Target:
<scratch>
[7,5,3] has 3 digits.
[3,2,8] has 3 digits.
[7,5,3] + [3,2,8] , A=[] , C=0 , 3+8+0=11 , A->1 , C->1
[7,5] + [3,2] , A=[1] , C=1 , 5+2+1=8 , A->8 , C->0
[7] + [3] , A=[8,1] , C=0 , 7+3+0=10 , A->0 , C->1
[] + [] , A=[0,8,1] C=1 , END
</scratch>
1081
</s> | 908 |
Input:
127+169
Target:
| Input:
375+249
Target:
<scratch>
[3,7,5] has 3 digits.
[2,4,9] has 3 digits.
[3,7,5] + [2,4,9] , A=[] , C=0 , 5+9+0=14 , A->4 , C->1
[3,7] + [2,4] , A=[4] , C=1 , 7+4+1=12 , A->2 , C->1
[3] + [2] , A=[2,4] , C=1 , 3+2+1=6 , A->6 , C->0
[] + [] , A=[6,2,4] C=0 , END
</scratch>
624
</s> | 349 |
Input:
666+991
Target:
| Input:
727+822
Target:
<scratch>
[7,2,7] has 3 digits.
[8,2,2] has 3 digits.
[7,2,7] + [8,2,2] , A=[] , C=0 , 7+2+0=9 , A->9 , C->0
[7,2] + [8,2] , A=[9] , C=0 , 2+2+0=4 , A->4 , C->0
[7] + [8] , A=[4,9] , C=0 , 7+8+0=15 , A->5 , C->1
[] + [] , A=[5,4,9] C=1 , END
</scratch>
1549
</s> | 1092 |
Input:
773+946
Target:
| Input:
649+519
Target:
<scratch>
[6,4,9] has 3 digits.
[5,1,9] has 3 digits.
[6,4,9] + [5,1,9] , A=[] , C=0 , 9+9+0=18 , A->8 , C->1
[6,4] + [5,1] , A=[8] , C=1 , 4+1+1=6 , A->6 , C->0
[6] + [5] , A=[6,8] , C=0 , 6+5+0=11 , A->1 , C->1
[] + [] , A=[1,6,8] C=1 , END
</scratch>
1168
</s> | 766 |
Input:
145+801
Target:
| Input:
438+787
Target:
<scratch>
[4,3,8] has 3 digits.
[7,8,7] has 3 digits.
[4,3,8] + [7,8,7] , A=[] , C=0 , 8+7+0=15 , A->5 , C->1
[4,3] + [7,8] , A=[5] , C=1 , 3+8+1=12 , A->2 , C->1
[4] + [7] , A=[2,5] , C=1 , 4+7+1=12 , A->2 , C->1
[] + [] , A=[2,2,5] C=1 , END
</scratch>
1225
</s> | 1001 |
Input:
574+555
Target:
| Input:
103+412
Target:
<scratch>
[1,0,3] has 3 digits.
[4,1,2] has 3 digits.
[1,0,3] + [4,1,2] , A=[] , C=0 , 3+2+0=5 , A->5 , C->0
[1,0] + [4,1] , A=[5] , C=0 , 0+1+0=1 , A->1 , C->0
[1] + [4] , A=[1,5] , C=0 , 1+4+0=5 , A->5 , C->0
[] + [] , A=[5,1,5] C=0 , END
</scratch>
515
</s> | 935 |
Input:
390+735
Target:
| Input:
526+941
Target:
<scratch>
[5,2,6] has 3 digits.
[9,4,1] has 3 digits.
[5,2,6] + [9,4,1] , A=[] , C=0 , 6+1+0=7 , A->7 , C->0
[5,2] + [9,4] , A=[7] , C=0 , 2+4+0=6 , A->6 , C->0
[5] + [9] , A=[6,7] , C=0 , 5+9+0=14 , A->4 , C->1
[] + [] , A=[4,6,7] C=1 , END
</scratch>
1467
</s> | 1104 |
Input:
922+937
Target:
| Input:
672+167
Target:
<scratch>
[6,7,2] has 3 digits.
[1,6,7] has 3 digits.
[6,7,2] + [1,6,7] , A=[] , C=0 , 2+7+0=9 , A->9 , C->0
[6,7] + [1,6] , A=[9] , C=0 , 7+6+0=13 , A->3 , C->1
[6] + [1] , A=[3,9] , C=1 , 6+1+1=8 , A->8 , C->0
[] + [] , A=[8,3,9] C=0 , END
</scratch>
839
</s> | 662 |
Input:
436+812
Target:
| Input:
678+862
Target:
<scratch>
[6,7,8] has 3 digits.
[8,6,2] has 3 digits.
[6,7,8] + [8,6,2] , A=[] , C=0 , 8+2+0=10 , A->0 , C->1
[6,7] + [8,6] , A=[0] , C=1 , 7+6+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> | 739 |
Input:
722+692
Target:
| Input:
586+927
Target:
<scratch>
[5,8,6] has 3 digits.
[9,2,7] has 3 digits.
[5,8,6] + [9,2,7] , A=[] , C=0 , 6+7+0=13 , A->3 , C->1
[5,8] + [9,2] , A=[3] , C=1 , 8+2+1=11 , A->1 , C->1
[5] + [9] , A=[1,3] , C=1 , 5+9+1=15 , A->5 , C->1
[] + [] , A=[5,1,3] C=1 , END
</scratch>
1513
</s> | 669 |
Input:
471+698
Target:
| Input:
172+707
Target:
<scratch>
[1,7,2] has 3 digits.
[7,0,7] has 3 digits.
[1,7,2] + [7,0,7] , A=[] , C=0 , 2+7+0=9 , A->9 , C->0
[1,7] + [7,0] , A=[9] , C=0 , 7+0+0=7 , A->7 , C->0
[1] + [7] , A=[7,9] , C=0 , 1+7+0=8 , A->8 , C->0
[] + [] , A=[8,7,9] C=0 , END
</scratch>
879
</s> | 548 |