wrong output fix

This commit is contained in:
Digi
2025-03-15 11:25:35 +01:00
parent 4b27a19904
commit 7a7ea27aa6
12 changed files with 10 additions and 12 deletions

View File

@@ -71,12 +71,8 @@ namespace DobozFeladat
Boxes.RemoveAll(x => x.ReadyForPackaging());
}
int length = 0;
foreach (var Box in Boxes)
{
length += Box.PrintBoxRecursively().Count();
}
Console.WriteLine($"Maximum length needed: {length}");
Console.WriteLine($"Maximum length needed: {MaximumLength}");
Console.WriteLine($"Total box place needed: {TotalBoxPlaceUsed}");
}