Extra dock per iteration
This commit is contained in:
@ -13,7 +13,7 @@ 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(' ');
|
||||||
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++)
|
||||||
{
|
{
|
||||||
@ -54,8 +54,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);
|
||||||
|
WriteLine($" fakt. slut {strtNode.NodeEnd}");
|
||||||
|
|
||||||
omgStart = 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