diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..22db5ce --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,9 @@ +{ + "ExpandedNodes": [ + "", + "\\fordulo_3", + "\\fordulo_3\\Program" + ], + "SelectedNode": "\\fordulo_3\\Program\\Program.cs", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/Verseny/FileContentIndex/5141a22c-61ba-42db-a756-5e403fa29073.vsidx b/.vs/Verseny/FileContentIndex/5141a22c-61ba-42db-a756-5e403fa29073.vsidx new file mode 100644 index 0000000..aad720d Binary files /dev/null and b/.vs/Verseny/FileContentIndex/5141a22c-61ba-42db-a756-5e403fa29073.vsidx differ diff --git a/.vs/Verseny/v17/.wsuo b/.vs/Verseny/v17/.wsuo new file mode 100644 index 0000000..b688659 Binary files /dev/null and b/.vs/Verseny/v17/.wsuo differ diff --git a/.vs/Verseny/v17/DocumentLayout.backup.json b/.vs/Verseny/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..7d11b9f --- /dev/null +++ b/.vs/Verseny/v17/DocumentLayout.backup.json @@ -0,0 +1,12 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\Verseny\\", + "Documents": [], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [] + } + ] +} \ No newline at end of file diff --git a/.vs/Verseny/v17/DocumentLayout.json b/.vs/Verseny/v17/DocumentLayout.json new file mode 100644 index 0000000..7d11b9f --- /dev/null +++ b/.vs/Verseny/v17/DocumentLayout.json @@ -0,0 +1,12 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\Verseny\\", + "Documents": [], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [] + } + ] +} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..982eec2 Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfo.cs b/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfo.cs index 1aa23b9..02052d7 100644 --- a/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfo.cs +++ b/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfo.cs @@ -1,6 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -13,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Program")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+dc971298b8cb50b3964136e51880e4b38a03bd9f")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+125039f7afa4d55f84ae92ca8bb5d680c96dddaa")] [assembly: System.Reflection.AssemblyProductAttribute("Program")] [assembly: System.Reflection.AssemblyTitleAttribute("Program")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfoInputs.cache b/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfoInputs.cache index 799974a..4b13a4e 100644 --- a/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfoInputs.cache +++ b/fordulo_1/Program/obj/Debug/net9.0/Program.AssemblyInfoInputs.cache @@ -1 +1 @@ -1f36a25f79f6a9f6f095f37aae6480c14a96c8f4edc9dee92182a5a1fce682b7 +fa1dd1337108d86b90c993aeca956532f3929d3df42ce60dbfe44b7b4331a5d0 diff --git a/fordulo_1/Program/obj/Debug/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig b/fordulo_1/Program/obj/Debug/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig index 40cfe42..58f46c6 100644 --- a/fordulo_1/Program/obj/Debug/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig +++ b/fordulo_1/Program/obj/Debug/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig @@ -8,7 +8,7 @@ build_property.PlatformNeutralAssembly = build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Program -build_property.ProjectDir = E:\Házi\13.osztály\Neumann_Verseny\fordulo_1\Program\ +build_property.ProjectDir = C:\Users\szabomarton\Desktop\Verseny\fordulo_1\Program\ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = build_property.EffectiveAnalysisLevelStyle = 9.0 diff --git a/fordulo_1/Program/obj/Debug/net9.0/Program.assets.cache b/fordulo_1/Program/obj/Debug/net9.0/Program.assets.cache index 6012cb7..2efc431 100644 Binary files a/fordulo_1/Program/obj/Debug/net9.0/Program.assets.cache and b/fordulo_1/Program/obj/Debug/net9.0/Program.assets.cache differ diff --git a/fordulo_1/Program/obj/Release/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/fordulo_1/Program/obj/Release/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..feda5e9 --- /dev/null +++ b/fordulo_1/Program/obj/Release/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/fordulo_1/Program/obj/Release/net9.0/Program.AssemblyInfo.cs b/fordulo_1/Program/obj/Release/net9.0/Program.AssemblyInfo.cs new file mode 100644 index 0000000..32e0086 --- /dev/null +++ b/fordulo_1/Program/obj/Release/net9.0/Program.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Program")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+125039f7afa4d55f84ae92ca8bb5d680c96dddaa")] +[assembly: System.Reflection.AssemblyProductAttribute("Program")] +[assembly: System.Reflection.AssemblyTitleAttribute("Program")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/fordulo_1/Program/obj/Release/net9.0/Program.AssemblyInfoInputs.cache b/fordulo_1/Program/obj/Release/net9.0/Program.AssemblyInfoInputs.cache new file mode 100644 index 0000000..bacc150 --- /dev/null +++ b/fordulo_1/Program/obj/Release/net9.0/Program.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +f906cfd11295328e105ea96075df17757f03b97601f6554b3ba2d5440a6c9a31 diff --git a/fordulo_1/Program/obj/Release/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig b/fordulo_1/Program/obj/Release/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..58f46c6 --- /dev/null +++ b/fordulo_1/Program/obj/Release/net9.0/Program.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net9.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Program +build_property.ProjectDir = C:\Users\szabomarton\Desktop\Verseny\fordulo_1\Program\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/fordulo_1/Program/obj/Release/net9.0/Program.GlobalUsings.g.cs b/fordulo_1/Program/obj/Release/net9.0/Program.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/fordulo_1/Program/obj/Release/net9.0/Program.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// <auto-generated/> +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/fordulo_1/Program/obj/Release/net9.0/Program.assets.cache b/fordulo_1/Program/obj/Release/net9.0/Program.assets.cache new file mode 100644 index 0000000..9cd84a2 Binary files /dev/null and b/fordulo_1/Program/obj/Release/net9.0/Program.assets.cache differ diff --git a/fordulo_2/Program/obj/Debug/Program.csproj.AssemblyReference.cache b/fordulo_2/Program/obj/Debug/Program.csproj.AssemblyReference.cache index 6943b8f..a93305f 100644 Binary files a/fordulo_2/Program/obj/Debug/Program.csproj.AssemblyReference.cache and b/fordulo_2/Program/obj/Debug/Program.csproj.AssemblyReference.cache differ diff --git a/fordulo_2/Program/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/fordulo_2/Program/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/fordulo_2/Program/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/fordulo_2/Program/obj/Release/Program.csproj.AssemblyReference.cache b/fordulo_2/Program/obj/Release/Program.csproj.AssemblyReference.cache new file mode 100644 index 0000000..a93305f Binary files /dev/null and b/fordulo_2/Program/obj/Release/Program.csproj.AssemblyReference.cache differ diff --git a/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/CodeChunks.db b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/CodeChunks.db new file mode 100644 index 0000000..10444be Binary files /dev/null and b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/CodeChunks.db differ diff --git a/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db new file mode 100644 index 0000000..527188c Binary files /dev/null and b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db differ diff --git a/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db-shm b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db-shm new file mode 100644 index 0000000..5a49d9d Binary files /dev/null and b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db-shm differ diff --git a/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db-wal b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db-wal new file mode 100644 index 0000000..90efbe7 Binary files /dev/null and b/fordulo_3/Program/.vs/Program/CopilotIndices/17.12.53.23981/SemanticSymbols.db-wal differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/03558ee9-6c41-41f3-ad68-b09a2d95a29e.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/03558ee9-6c41-41f3-ad68-b09a2d95a29e.vsidx deleted file mode 100644 index 67de093..0000000 Binary files a/fordulo_3/Program/.vs/Program/FileContentIndex/03558ee9-6c41-41f3-ad68-b09a2d95a29e.vsidx and /dev/null differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/083dab1e-2298-4639-89a6-384e63e2e5fb.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/083dab1e-2298-4639-89a6-384e63e2e5fb.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/fordulo_3/Program/.vs/Program/FileContentIndex/083dab1e-2298-4639-89a6-384e63e2e5fb.vsidx differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/53924f60-d18f-4ad6-91bb-e7e705e0e5ec.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/53924f60-d18f-4ad6-91bb-e7e705e0e5ec.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/fordulo_3/Program/.vs/Program/FileContentIndex/53924f60-d18f-4ad6-91bb-e7e705e0e5ec.vsidx differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/53c087b0-a46d-4e5b-8f8a-dcd317786d25.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/53c087b0-a46d-4e5b-8f8a-dcd317786d25.vsidx deleted file mode 100644 index 674963b..0000000 Binary files a/fordulo_3/Program/.vs/Program/FileContentIndex/53c087b0-a46d-4e5b-8f8a-dcd317786d25.vsidx and /dev/null differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/7bb177e6-bed0-410e-b775-a9b6bfd7193b.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/7bb177e6-bed0-410e-b775-a9b6bfd7193b.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/fordulo_3/Program/.vs/Program/FileContentIndex/7bb177e6-bed0-410e-b775-a9b6bfd7193b.vsidx differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/89a9efce-9a8f-4b6b-8bcc-3b5a9b791b04.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/89a9efce-9a8f-4b6b-8bcc-3b5a9b791b04.vsidx new file mode 100644 index 0000000..70aef67 Binary files /dev/null and b/fordulo_3/Program/.vs/Program/FileContentIndex/89a9efce-9a8f-4b6b-8bcc-3b5a9b791b04.vsidx differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/91a593c8-82be-4403-b7f8-4ae1fdf23dc0.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/91a593c8-82be-4403-b7f8-4ae1fdf23dc0.vsidx new file mode 100644 index 0000000..acdb6f9 Binary files /dev/null and b/fordulo_3/Program/.vs/Program/FileContentIndex/91a593c8-82be-4403-b7f8-4ae1fdf23dc0.vsidx differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/bf2be457-47fd-4c05-95ff-13b06b0d4062.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/bf2be457-47fd-4c05-95ff-13b06b0d4062.vsidx deleted file mode 100644 index a31cc94..0000000 Binary files a/fordulo_3/Program/.vs/Program/FileContentIndex/bf2be457-47fd-4c05-95ff-13b06b0d4062.vsidx and /dev/null differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/e1f6c6f7-dd66-4685-bede-ddf5e040a381.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/e1f6c6f7-dd66-4685-bede-ddf5e040a381.vsidx deleted file mode 100644 index c44dd7c..0000000 Binary files a/fordulo_3/Program/.vs/Program/FileContentIndex/e1f6c6f7-dd66-4685-bede-ddf5e040a381.vsidx and /dev/null differ diff --git a/fordulo_3/Program/.vs/Program/FileContentIndex/feb9953c-1d6a-4dd8-b9aa-8c2bba9ba3d5.vsidx b/fordulo_3/Program/.vs/Program/FileContentIndex/feb9953c-1d6a-4dd8-b9aa-8c2bba9ba3d5.vsidx deleted file mode 100644 index 5bf302e..0000000 Binary files a/fordulo_3/Program/.vs/Program/FileContentIndex/feb9953c-1d6a-4dd8-b9aa-8c2bba9ba3d5.vsidx and /dev/null differ diff --git a/fordulo_3/Program/.vs/Program/copilot-chat/f9c248b7/sessions/60af910b-f53a-4808-9b09-d87c835f0707 b/fordulo_3/Program/.vs/Program/copilot-chat/f9c248b7/sessions/60af910b-f53a-4808-9b09-d87c835f0707 index 0d93501..fc3b65e 100644 Binary files a/fordulo_3/Program/.vs/Program/copilot-chat/f9c248b7/sessions/60af910b-f53a-4808-9b09-d87c835f0707 and b/fordulo_3/Program/.vs/Program/copilot-chat/f9c248b7/sessions/60af910b-f53a-4808-9b09-d87c835f0707 differ diff --git a/fordulo_3/Program/.vs/Program/v17/.suo b/fordulo_3/Program/.vs/Program/v17/.suo index f562391..621b4db 100644 Binary files a/fordulo_3/Program/.vs/Program/v17/.suo and b/fordulo_3/Program/.vs/Program/v17/.suo differ diff --git a/fordulo_3/Program/.vs/Program/v17/DocumentLayout.backup.json b/fordulo_3/Program/.vs/Program/v17/DocumentLayout.backup.json index 629360a..e7f4697 100644 --- a/fordulo_3/Program/.vs/Program/v17/DocumentLayout.backup.json +++ b/fordulo_3/Program/.vs/Program/v17/DocumentLayout.backup.json @@ -1,13 +1,13 @@ { "Version": 1, - "WorkspaceRootPath": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\", + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\", "Documents": [ { - "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|c:\\users\\szabomarton\\desktop\\verseny\\fordulo_3\\program\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { - "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|e:\\h\u00E1zi\\13.oszt\u00E1ly\\neumann_verseny\\fordulo_3\\program\\virus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\virus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|solutionrelative:virus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], @@ -24,11 +24,11 @@ "$type": "Document", "DocumentIndex": 0, "Title": "Program.cs", - "DocumentMoniker": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Program.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Program.cs", "RelativeDocumentMoniker": "Program.cs", - "ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Program.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Program.cs", "RelativeToolTip": "Program.cs", - "ViewState": "AgIAABwAAAAAAAAAAAAIwCcAAAAiAAAAAAAAAA==", + "ViewState": "AgIAAGgAAAAAAAAAAAAwwHsAAAAkAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-03-12T12:54:16.847Z", "EditorCaption": "" @@ -37,11 +37,11 @@ "$type": "Document", "DocumentIndex": 1, "Title": "Virus.cs", - "DocumentMoniker": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Virus.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Virus.cs", "RelativeDocumentMoniker": "Virus.cs", - "ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Virus.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Virus.cs", "RelativeToolTip": "Virus.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAADIAAAABAAAAAAAAAA==", + "ViewState": "AgIAACMAAAAAAAAAAAAIwDAAAAAJAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-03-13T16:14:18.948Z", "EditorCaption": "" diff --git a/fordulo_3/Program/.vs/Program/v17/DocumentLayout.json b/fordulo_3/Program/.vs/Program/v17/DocumentLayout.json index 740caba..e7f4697 100644 --- a/fordulo_3/Program/.vs/Program/v17/DocumentLayout.json +++ b/fordulo_3/Program/.vs/Program/v17/DocumentLayout.json @@ -1,13 +1,13 @@ { "Version": 1, - "WorkspaceRootPath": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\", + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\", "Documents": [ { - "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|c:\\users\\szabomarton\\desktop\\verseny\\fordulo_3\\program\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { - "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|e:\\h\u00E1zi\\13.oszt\u00E1ly\\neumann_verseny\\fordulo_3\\program\\virus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "AbsoluteMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\virus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{6A74A9DE-500D-46FF-859A-18F4A752D2A5}|Program.csproj|solutionrelative:virus.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], @@ -24,11 +24,11 @@ "$type": "Document", "DocumentIndex": 0, "Title": "Program.cs", - "DocumentMoniker": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Program.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Program.cs", "RelativeDocumentMoniker": "Program.cs", - "ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Program.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Program.cs", "RelativeToolTip": "Program.cs", - "ViewState": "AgIAAD8AAAAAAAAAAAAcwCcAAAAiAAAAAAAAAA==", + "ViewState": "AgIAAGgAAAAAAAAAAAAwwHsAAAAkAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-03-12T12:54:16.847Z", "EditorCaption": "" @@ -37,11 +37,11 @@ "$type": "Document", "DocumentIndex": 1, "Title": "Virus.cs", - "DocumentMoniker": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Virus.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Virus.cs", "RelativeDocumentMoniker": "Virus.cs", - "ToolTip": "E:\\H\u00E1zi\\13.oszt\u00E1ly\\Neumann_Verseny\\fordulo_3\\Program\\Virus.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\Verseny\\fordulo_3\\Program\\Virus.cs", "RelativeToolTip": "Virus.cs", - "ViewState": "AgIAAAMAAAAAAAAAAAAAADIAAAABAAAAAAAAAA==", + "ViewState": "AgIAACMAAAAAAAAAAAAIwDAAAAAJAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-03-13T16:14:18.948Z", "EditorCaption": "" diff --git a/fordulo_3/Program/Program.cs b/fordulo_3/Program/Program.cs index 4bdab15..3a3ed78 100644 --- a/fordulo_3/Program/Program.cs +++ b/fordulo_3/Program/Program.cs @@ -11,8 +11,15 @@ namespace Program { public static Dictionary<int, List<int>> Contacts = new Dictionary<int, List<int>>(); public static HashSet<int> InfectedPeople = new HashSet<int>(); + public static List<int> uniquePeople = new List<int>(); + public static HashSet<int> NewInfectedPeople = new HashSet<int>(); static void Main(string[] args) + { + Previous(); + } + + public static void ListAllInfectionTreeVoid() { string path = $@"../../../forrasok/elek.txt"; @@ -24,6 +31,83 @@ namespace Program int infector = Convert.ToInt32(nums[0]); int infected = Convert.ToInt32(nums[1]); + if (!uniquePeople.Contains(infector)) + { + uniquePeople.Add(infector); + } + + if (!uniquePeople.Contains(infected)) + { + uniquePeople.Add(infected); + } + + if (Contacts.ContainsKey(infector)) + { + Contacts[infector].Add(infected); + } + else + { + Contacts[infector] = new List<int> { infected }; + } + } + + InfectedPeople.Clear(); // Clear the set before starting the spread + + int infectionTreeCount = 0; + + // Spread the virus starting from each unique person if they are not already infected + foreach (var person in uniquePeople) + { + if (!InfectedPeople.Contains(person)) + { + infectionTreeCount++; + Virus rootVirus = new Virus(person); + InfectedPeople.Add(person); // Add the root virus to the infected set + SpreadBFS(rootVirus, int.MaxValue); // Spread without depth limit + } + } + + Console.WriteLine($"Infected people count: {InfectedPeople.Count}"); + Console.WriteLine($"Unique people count: {uniquePeople.Count}"); + Console.WriteLine($"Number of infection trees: {infectionTreeCount}"); + + // Verify if all unique people are infected + bool allInfected = uniquePeople.All(person => InfectedPeople.Contains(person)); + Console.WriteLine($"All unique people infected: {allInfected}"); + + if (!allInfected) + { + var notInfected = uniquePeople.Where(person => !InfectedPeople.Contains(person)).ToList(); + Console.WriteLine("People not infected:"); + foreach (var person in notInfected) + { + Console.WriteLine(person); + } + } + } + + public static void Previous() + { + string path = $@"../../../forrasok/elek.txt"; + + var data = File.ReadAllLines(path); + + foreach (var item in data) + { + string[] nums = item.Split(' '); + int infector = Convert.ToInt32(nums[0]); + int infected = Convert.ToInt32(nums[1]); + + if (!uniquePeople.Contains(infector)) + { + uniquePeople.Add(infector); + } + + if (!uniquePeople.Contains(infected)) + { + uniquePeople.Add(infected); + } + if (Contacts.ContainsKey(infector)) { Contacts[infector].Add(infected); @@ -37,13 +121,43 @@ namespace Program Virus rootVirus = new Virus(2); InfectedPeople.Clear(); // Clear the set before starting the spread InfectedPeople.Add(2); // Add the root virus to the infected set - SpreadBFS(rootVirus, 2); - //Spread(rootVirus, 9); + SpreadBFS(rootVirus, 5); + //Spread(rootVirus, 15); //rootVirus.PrintInfectionTreeWithDepth(2, 0, "->"); rootVirus.PrintInfectionTree(); Console.WriteLine(InfectedPeople.Count); + Console.WriteLine(rootVirus.CountInfectedInDepthRange(3, 10)); + + Console.WriteLine($"Infected people count: {InfectedPeople.Count}"); + Console.WriteLine($"Unique people count: {uniquePeople.Count}"); + + // Verify if all unique people are infected + bool allInfected = uniquePeople.All(person => InfectedPeople.Contains(person)); + Console.WriteLine($"All unique people infected: {allInfected}"); + + if (!allInfected) + { + var notInfected = uniquePeople.Where(person => !InfectedPeople.Contains(person)).ToList(); + Console.WriteLine("People not infected:"); + foreach (var person in notInfected) + { + Console.WriteLine(person); + } + } + + /* + Virus rootVirus2 = new Virus(2); + int count = 0; + while (NewInfectedPeople.Count != uniquePeople.Count) + { + count++; + SpreadBFS(rootVirus2, count); + } + + Console.WriteLine(count); + */ } @@ -74,12 +188,6 @@ namespace Program } } } - - // Check if the current virus should be healed - if (currentDepth - currentVirus.InfectionTurn >= 8) - { - InfectedPeople.Remove(currentVirus.Name); - } } } diff --git a/fordulo_3/Program/Virus.cs b/fordulo_3/Program/Virus.cs index 2494dea..1e13d5a 100644 --- a/fordulo_3/Program/Virus.cs +++ b/fordulo_3/Program/Virus.cs @@ -47,5 +47,22 @@ namespace Program infected.PrintInfectionTreeWithDepth(maxDepth, currentDepth + 1, indent + " "); } } + + public int CountInfectedInDepthRange(int minDepth, int maxDepth, int currentDepth = 0) + { + int count = 0; + + if (currentDepth >= minDepth && currentDepth <= maxDepth) + { + count++; + } + + foreach (var infected in Infected) + { + count += infected.CountInfectedInDepthRange(minDepth, maxDepth, currentDepth + 1); + } + + return count; + } } } \ No newline at end of file diff --git a/fordulo_3/Program/bin/Debug/Program.exe b/fordulo_3/Program/bin/Debug/Program.exe index ccfc29f..5bd81cb 100644 Binary files a/fordulo_3/Program/bin/Debug/Program.exe and b/fordulo_3/Program/bin/Debug/Program.exe differ diff --git a/fordulo_3/Program/bin/Debug/Program.pdb b/fordulo_3/Program/bin/Debug/Program.pdb index 4f93824..d08159b 100644 Binary files a/fordulo_3/Program/bin/Debug/Program.pdb and b/fordulo_3/Program/bin/Debug/Program.pdb differ diff --git a/fordulo_3/Program/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/fordulo_3/Program/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 388e3ef..5b9e3f7 100644 Binary files a/fordulo_3/Program/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/fordulo_3/Program/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/fordulo_3/Program/obj/Debug/Program.csproj.AssemblyReference.cache b/fordulo_3/Program/obj/Debug/Program.csproj.AssemblyReference.cache index 6943b8f..a93305f 100644 Binary files a/fordulo_3/Program/obj/Debug/Program.csproj.AssemblyReference.cache and b/fordulo_3/Program/obj/Debug/Program.csproj.AssemblyReference.cache differ diff --git a/fordulo_3/Program/obj/Debug/Program.csproj.FileListAbsolute.txt b/fordulo_3/Program/obj/Debug/Program.csproj.FileListAbsolute.txt index 1248eb9..a85bd15 100644 --- a/fordulo_3/Program/obj/Debug/Program.csproj.FileListAbsolute.txt +++ b/fordulo_3/Program/obj/Debug/Program.csproj.FileListAbsolute.txt @@ -5,3 +5,10 @@ E:\Házi\13.osztály\Neumann_Verseny\fordulo_3\Program\obj\Debug\Program.csproj. E:\Házi\13.osztály\Neumann_Verseny\fordulo_3\Program\obj\Debug\Program.csproj.CoreCompileInputs.cache E:\Házi\13.osztály\Neumann_Verseny\fordulo_3\Program\obj\Debug\Program.exe E:\Házi\13.osztály\Neumann_Verseny\fordulo_3\Program\obj\Debug\Program.pdb +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\bin\Debug\Program.exe.config +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\bin\Debug\Program.exe +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\bin\Debug\Program.pdb +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\obj\Debug\Program.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\obj\Debug\Program.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\obj\Debug\Program.exe +C:\Users\szabomarton\Desktop\Verseny\fordulo_3\Program\obj\Debug\Program.pdb diff --git a/fordulo_3/Program/obj/Debug/Program.exe b/fordulo_3/Program/obj/Debug/Program.exe index ccfc29f..5bd81cb 100644 Binary files a/fordulo_3/Program/obj/Debug/Program.exe and b/fordulo_3/Program/obj/Debug/Program.exe differ diff --git a/fordulo_3/Program/obj/Debug/Program.pdb b/fordulo_3/Program/obj/Debug/Program.pdb index 4f93824..d08159b 100644 Binary files a/fordulo_3/Program/obj/Debug/Program.pdb and b/fordulo_3/Program/obj/Debug/Program.pdb differ diff --git a/fordulo_3/Program/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/fordulo_3/Program/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/fordulo_3/Program/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/fordulo_3/Program/obj/Release/Program.csproj.AssemblyReference.cache b/fordulo_3/Program/obj/Release/Program.csproj.AssemblyReference.cache new file mode 100644 index 0000000..a93305f Binary files /dev/null and b/fordulo_3/Program/obj/Release/Program.csproj.AssemblyReference.cache differ diff --git a/megoldasok.md b/megoldasok.md index dbaabba..e39d48e 100644 --- a/megoldasok.md +++ b/megoldasok.md @@ -52,5 +52,5 @@ - b: `296962999629` ### 4. feladat -- a: `` -- b: `` +- a: `159` +- b: `14`