Extra dock per iteration

This commit is contained in:
2018-12-25 13:07:44 +01:00
parent abaaf01763
commit 8a666b244f

View File

@ -13,7 +13,7 @@ namespace _2018_08
static void Main(string[] args)
{
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(' ');
int[] numbers = new int[resTab.Length];
for (int i = 0; i < resTab.Length; i++)
{
@ -54,8 +54,18 @@ namespace _2018_08
//llT.AddLast(nxt);
}
}
Write($"start: {strtNode.HeaderStart}, init. end: {strtNode.NodeEnd}, ant. Metas: {strtNode.AntMetaEntries}, ");
strtNode.PrepMetatab(headEnd - strtNode.NodeEnd + strtNode.AntMetaEntries);
WriteLine($" fakt. slut {strtNode.NodeEnd}");
omgStart = strtNode.NodeEnd;
for (int i = omgStart; i < omgStart + 5; i++)
{
Write($"numbers[{i}]:{numbers[i]}, ");
}
WriteLine();
Write(" ");
}
WriteLine();