wrong output fix
This commit is contained in:
parent
4b27a19904
commit
7a7ea27aa6
fordulo_3/Doboz/DobozFeladat
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -28,9 +28,10 @@
|
|||
"RelativeDocumentMoniker": "Box.cs",
|
||||
"ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Doboz\\DobozFeladat\\Box.cs",
|
||||
"RelativeToolTip": "Box.cs",
|
||||
"ViewState": "AgIAADEAAAAAAAAAAAAwwFkAAAAZAAAAAAAAAA==",
|
||||
"ViewState": "AgIAAEAAAAAAAAAAAAAwwEoAAAAgAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-15T09:00:39.48Z"
|
||||
"WhenOpened": "2025-03-15T09:00:39.48Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
|
@ -40,7 +41,7 @@
|
|||
"RelativeDocumentMoniker": "Program.cs",
|
||||
"ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Doboz\\DobozFeladat\\Program.cs",
|
||||
"RelativeToolTip": "Program.cs",
|
||||
"ViewState": "AgIAACgAAAAAAAAAAAAcwE8AAABOAAAAAAAAAA==",
|
||||
"ViewState": "AgIAACgAAAAAAAAAAAAAAEgAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-15T09:00:10.429Z",
|
||||
"EditorCaption": ""
|
||||
|
|
|
@ -28,9 +28,10 @@
|
|||
"RelativeDocumentMoniker": "Box.cs",
|
||||
"ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Doboz\\DobozFeladat\\Box.cs",
|
||||
"RelativeToolTip": "Box.cs",
|
||||
"ViewState": "AgIAADEAAAAAAAAAAAAwwFkAAAAZAAAAAAAAAA==",
|
||||
"ViewState": "AgIAAEAAAAAAAAAAAAAwwEoAAAAgAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-15T09:00:39.48Z"
|
||||
"WhenOpened": "2025-03-15T09:00:39.48Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
|
@ -40,7 +41,7 @@
|
|||
"RelativeDocumentMoniker": "Program.cs",
|
||||
"ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Doboz\\DobozFeladat\\Program.cs",
|
||||
"RelativeToolTip": "Program.cs",
|
||||
"ViewState": "AgIAACgAAAAAAAAAAAAcwD0AAAAwAAAAAAAAAA==",
|
||||
"ViewState": "AgIAACgAAAAAAAAAAAAAAEoAAAA9AAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-15T09:00:10.429Z",
|
||||
"EditorCaption": ""
|
||||
|
|
|
@ -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}");
|
||||
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user