Merged conflicts
This commit is contained in:
@ -35,6 +35,8 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Numerics" />
|
||||||
|
<Reference Include="System.Runtime.Serialization" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
|||||||
@ -35,6 +35,8 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Numerics" />
|
||||||
|
<Reference Include="System.Runtime.Serialization" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
|||||||
@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using static System.Console;
|
using static System.Console;
|
||||||
|
|
||||||
namespace _2018_08
|
namespace _2018_08
|
||||||
@ -13,13 +8,20 @@ namespace _2018_08
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
//string[] resTab = File.ReadAllText(@"..\..\..\Data\Adventofcode_181208\2018_08_data.txt").Split(' ');
|
//string[] resTab = File.ReadAllText(@"..\..\..\Data\Adventofcode_181208\2018_08_data.txt").Split(' ');
|
||||||
string[] resTab = @"2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2".Split(' ');
|
//string[] resTab = @"2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2 2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2".Split(' ');
|
||||||
|
string[] resTab = @"2 3 2 1 2 3 1 1 0 2 1 2 3 0 3 4 5 6 7 8 9 0 4 10 11 12 13 14 2 2 0 3 15 16 17 0 2 18 19 20 21 22 23 24".Split(' ');
|
||||||
int[] numbers = new int[resTab.Length];
|
int[] numbers = new int[resTab.Length];
|
||||||
for (int i = 0; i < resTab.Length; i++)
|
for (int i = 0; i < resTab.Length; i++)
|
||||||
{
|
{
|
||||||
numbers[i] = int.Parse(resTab[i]);
|
numbers[i] = int.Parse(resTab[i]);
|
||||||
}
|
}
|
||||||
WriteLine($"Antal värden = {resTab.Length}");
|
int y = 0;
|
||||||
|
for(int z = 1; z < 25; z++)
|
||||||
|
{
|
||||||
|
y += z;
|
||||||
|
}
|
||||||
|
|
||||||
|
WriteLine($"Antal värden = {resTab.Length} svar = {y}");
|
||||||
ReadKey();
|
ReadKey();
|
||||||
|
|
||||||
var pgm = new Program();
|
var pgm = new Program();
|
||||||
@ -54,8 +56,18 @@ namespace _2018_08
|
|||||||
//llT.AddLast(nxt);
|
//llT.AddLast(nxt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Write($"start: {strtNode.HeaderStart}, init. end: {strtNode.NodeEnd}, ant. Metas: {strtNode.AntMetaEntries}, ");
|
||||||
strtNode.PrepMetatab(headEnd - strtNode.NodeEnd + strtNode.AntMetaEntries);
|
strtNode.PrepMetatab(headEnd - strtNode.NodeEnd + strtNode.AntMetaEntries);
|
||||||
omgStart= strtNode.NodeEnd;
|
WriteLine($" fakt. slut {strtNode.NodeEnd}");
|
||||||
|
|
||||||
|
omgStart = strtNode.NodeEnd;
|
||||||
|
|
||||||
|
for (int i = omgStart; i < omgStart + 5; i++)
|
||||||
|
{
|
||||||
|
Write($"numbers[{i}]:{numbers[i]}, ");
|
||||||
|
}
|
||||||
|
WriteLine();
|
||||||
|
Write(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteLine();
|
WriteLine();
|
||||||
|
|||||||
Reference in New Issue
Block a user