Kaynağa Gözat

added full project

unknown 2 ay önce
ebeveyn
işleme
3526d036ae
28 değiştirilmiş dosya ile 490 ekleme ve 1 silme
  1. 88 1
      Diagrams/ДиаграммаПоследовательности.drawio
  2. BIN
      source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/347c1911-0133-4e19-9568-872bf2f9d550.vsidx
  3. BIN
      source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/56c123da-662a-41d7-b3e0-862a72354380.vsidx
  4. BIN
      source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/7a8dc1d4-271b-43d1-8cc6-52b2186f6ee6.vsidx
  5. BIN
      source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/9780aefc-5139-4104-8da5-be1c338e9ac3.vsidx
  6. BIN
      source/repos/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
  7. 58 0
      source/repos/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json
  8. 58 0
      source/repos/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
  9. 25 0
      source/repos/ConsoleApp1/ConsoleApp1.sln
  10. 6 0
      source/repos/ConsoleApp1/ConsoleApp1/App.config
  11. 54 0
      source/repos/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
  12. 52 0
      source/repos/ConsoleApp1/ConsoleApp1/Program.cs
  13. 33 0
      source/repos/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs
  14. 67 0
      source/repos/ConsoleApp1/ConsoleApp1/SeverZapad.cs
  15. BIN
      source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe
  16. 6 0
      source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config
  17. BIN
      source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
  18. 5 0
      source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/Trace and debug
  19. 5 0
      source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/output.txt
  20. 7 0
      source/repos/ConsoleApp1/ConsoleApp1/input.txt
  21. 4 0
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
  22. BIN
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache
  23. 1 0
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache
  24. 14 0
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt
  25. BIN
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe
  26. BIN
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
  27. BIN
      source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  28. 7 0
      source/repos/ConsoleApp1/input.txt

+ 88 - 1
Diagrams/ДиаграммаПоследовательности.drawio

@@ -1,6 +1,6 @@
 <mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0" version="24.7.10">
   <diagram name="Страница — 1" id="5XkpJitV3vxBeSdCqhlK">
-    <mxGraphModel dx="1386" dy="791" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="0">
+    <mxGraphModel dx="1155" dy="659" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" background="none" math="0" shadow="0">
       <root>
         <mxCell id="0" />
         <mxCell id="1" parent="0" />
@@ -104,6 +104,93 @@
             <mxPoint x="85" y="660" as="targetPoint" />
           </mxGeometry>
         </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-144" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="580" y="210" width="360" height="270" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-145" value="ПК" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="700" y="310" width="120" height="60" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-146" value="Файл входных данных" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="590" y="230" width="80" height="50" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-147" value="Файл результата" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="820" y="225" width="90" height="60" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-148" value="Пользователь" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="610" y="395" width="100" height="55" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-149" value="Код метода" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="805" y="395" width="120" height="60" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-150" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="1G1VEl_JAjt3xqiYiSK4-145" target="1G1VEl_JAjt3xqiYiSK4-149">
+          <mxGeometry width="50" height="50" relative="1" as="geometry">
+            <mxPoint x="870" y="400" as="sourcePoint" />
+            <mxPoint x="920" y="350" as="targetPoint" />
+            <Array as="points">
+              <mxPoint x="865" y="355" />
+            </Array>
+          </mxGeometry>
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-151" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="1G1VEl_JAjt3xqiYiSK4-145" target="1G1VEl_JAjt3xqiYiSK4-148">
+          <mxGeometry width="50" height="50" relative="1" as="geometry">
+            <mxPoint x="520" y="440" as="sourcePoint" />
+            <mxPoint x="570" y="390" as="targetPoint" />
+            <Array as="points">
+              <mxPoint x="660" y="355" />
+            </Array>
+          </mxGeometry>
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-152" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="1G1VEl_JAjt3xqiYiSK4-145" target="1G1VEl_JAjt3xqiYiSK4-146">
+          <mxGeometry width="50" height="50" relative="1" as="geometry">
+            <mxPoint x="490" y="430" as="sourcePoint" />
+            <mxPoint x="540" y="380" as="targetPoint" />
+            <Array as="points">
+              <mxPoint x="630" y="340" />
+            </Array>
+          </mxGeometry>
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-153" value="" style="endArrow=classic;html=1;rounded=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.444;entryY=0.989;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="1G1VEl_JAjt3xqiYiSK4-145" target="1G1VEl_JAjt3xqiYiSK4-147">
+          <mxGeometry width="50" height="50" relative="1" as="geometry">
+            <mxPoint x="490" y="430" as="sourcePoint" />
+            <mxPoint x="540" y="380" as="targetPoint" />
+            <Array as="points">
+              <mxPoint x="860" y="340" />
+            </Array>
+          </mxGeometry>
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-154" value="Тестовая развёртывания" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
+          <mxGeometry x="560" y="150" width="60" height="30" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-155" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="660" y="235" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-156" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="660" y="250" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-157" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="905" y="245" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-158" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="905" y="230" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-159" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="700" y="400" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-160" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="700" y="417.5" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-161" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="910" y="400" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-162" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
+          <mxGeometry x="910" y="417.5" width="20" height="10" as="geometry" />
+        </mxCell>
+        <mxCell id="1G1VEl_JAjt3xqiYiSK4-163" value="" style="endArrow=none;html=1;rounded=0;" edge="1" parent="1">
+          <mxGeometry width="50" height="50" relative="1" as="geometry">
+            <mxPoint x="460" y="733" as="sourcePoint" />
+            <mxPoint x="460" as="targetPoint" />
+          </mxGeometry>
+        </mxCell>
       </root>
     </mxGraphModel>
   </diagram>

BIN
source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/347c1911-0133-4e19-9568-872bf2f9d550.vsidx


BIN
source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/56c123da-662a-41d7-b3e0-862a72354380.vsidx


BIN
source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/7a8dc1d4-271b-43d1-8cc6-52b2186f6ee6.vsidx


BIN
source/repos/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/9780aefc-5139-4104-8da5-be1c338e9ac3.vsidx


BIN
source/repos/ConsoleApp1/.vs/ConsoleApp1/v17/.suo


+ 58 - 0
source/repos/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json

@@ -0,0 +1,58 @@
+{
+  "Version": 1,
+  "WorkspaceRootPath": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\",
+  "Documents": [
+    {
+      "AbsoluteMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|d:\\rzaev_examen\\source\\repos\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
+      "RelativeMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
+    },
+    {
+      "AbsoluteMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\consoleapp1\\severzapad.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
+      "RelativeMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\severzapad.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
+    }
+  ],
+  "DocumentGroupContainers": [
+    {
+      "Orientation": 0,
+      "VerticalTabListWidth": 256,
+      "DocumentGroups": [
+        {
+          "DockedWidth": 200,
+          "SelectedChildIndex": 1,
+          "Children": [
+            {
+              "$type": "Bookmark",
+              "Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
+            },
+            {
+              "$type": "Document",
+              "DocumentIndex": 0,
+              "Title": "Program.cs",
+              "DocumentMoniker": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\Program.cs",
+              "RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
+              "ToolTip": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\Program.cs",
+              "RelativeToolTip": "ConsoleApp1\\Program.cs",
+              "ViewState": "AgIAAAAAAAAAAAAAAAAAAC4AAAAAAAAAAAAAAA==",
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
+              "WhenOpened": "2024-09-05T11:48:47.74Z",
+              "EditorCaption": ""
+            },
+            {
+              "$type": "Document",
+              "DocumentIndex": 1,
+              "Title": "SeverZapad.cs",
+              "DocumentMoniker": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\SeverZapad.cs",
+              "RelativeDocumentMoniker": "ConsoleApp1\\SeverZapad.cs",
+              "ToolTip": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\SeverZapad.cs",
+              "RelativeToolTip": "ConsoleApp1\\SeverZapad.cs",
+              "ViewState": "AgIAAAAAAAAAAAAAAAAAAAsAAAAeAAAAAAAAAA==",
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
+              "WhenOpened": "2024-09-05T10:34:09.762Z",
+              "EditorCaption": ""
+            }
+          ]
+        }
+      ]
+    }
+  ]
+}

+ 58 - 0
source/repos/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json

@@ -0,0 +1,58 @@
+{
+  "Version": 1,
+  "WorkspaceRootPath": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\",
+  "Documents": [
+    {
+      "AbsoluteMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|d:\\rzaev_examen\\source\\repos\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
+      "RelativeMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
+    },
+    {
+      "AbsoluteMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\consoleapp1\\severzapad.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
+      "RelativeMoniker": "D:0:0:{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\severzapad.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
+    }
+  ],
+  "DocumentGroupContainers": [
+    {
+      "Orientation": 0,
+      "VerticalTabListWidth": 256,
+      "DocumentGroups": [
+        {
+          "DockedWidth": 200,
+          "SelectedChildIndex": 1,
+          "Children": [
+            {
+              "$type": "Bookmark",
+              "Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
+            },
+            {
+              "$type": "Document",
+              "DocumentIndex": 0,
+              "Title": "Program.cs",
+              "DocumentMoniker": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\Program.cs",
+              "RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
+              "ToolTip": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\Program.cs",
+              "RelativeToolTip": "ConsoleApp1\\Program.cs",
+              "ViewState": "AgIAAAAAAAAAAAAAAAAAAC4AAAAAAAAAAAAAAA==",
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
+              "WhenOpened": "2024-09-05T11:48:47.74Z",
+              "EditorCaption": ""
+            },
+            {
+              "$type": "Document",
+              "DocumentIndex": 1,
+              "Title": "SeverZapad.cs",
+              "DocumentMoniker": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\SeverZapad.cs",
+              "RelativeDocumentMoniker": "ConsoleApp1\\SeverZapad.cs",
+              "ToolTip": "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\ConsoleApp1\\SeverZapad.cs",
+              "RelativeToolTip": "ConsoleApp1\\SeverZapad.cs",
+              "ViewState": "AgIAAAAAAAAAAAAAAAAAAAsAAAAeAAAAAAAAAA==",
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
+              "WhenOpened": "2024-09-05T10:34:09.762Z",
+              "EditorCaption": ""
+            }
+          ]
+        }
+      ]
+    }
+  ]
+}

+ 25 - 0
source/repos/ConsoleApp1/ConsoleApp1.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.11.35222.181
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {7324A463-8EB4-4BD1-8279-404AD001A0A8}
+	EndGlobalSection
+EndGlobal

+ 6 - 0
source/repos/ConsoleApp1/ConsoleApp1/App.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+    </startup>
+</configuration>

+ 54 - 0
source/repos/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj

@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{E82D1FAA-92C8-4BB1-AC57-07A5A774CC05}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>ConsoleApp1</RootNamespace>
+    <AssemblyName>ConsoleApp1</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Program.cs" />
+    <Compile Include="SeverZapad.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 52 - 0
source/repos/ConsoleApp1/ConsoleApp1/Program.cs

@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Sz
+{
+    internal class Program
+    {
+        static double[][] ConvertToDoubleArray(string[] arrayString) => arrayString.Select(line => line.Split(' ').Select(double.Parse).ToArray()).ToArray();
+        static int[][] ConvertToIntArray(string[] arrayString) => arrayString.Select(line => line.Split(' ').Select(int.Parse).ToArray()).ToArray();
+        static void Main(string[] args)
+        {
+            Trace.Listeners.Add(new TextWriterTraceListener("Trace and debug"));
+            Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
+            Trace.AutoFlush = true;
+
+            string inputPath = "D:\\Rzaev_Examen\\source\\repos\\ConsoleApp1\\input.txt";
+            string outputPath = "output.txt";
+
+            string[] allLines = File.ReadAllLines(inputPath);
+            int separatorOrig = Array.IndexOf(allLines, "-");
+
+            string[] transportTaskOne = allLines.Take(separatorOrig).ToArray();
+            int separatorOne = Array.IndexOf(transportTaskOne, "/");
+            string[] arrayTarifOne = transportTaskOne.Take(separatorOne).ToArray();
+            double[][] arrayTarOne = ConvertToDoubleArray(arrayTarifOne);
+
+            string[] suppliersAndCustomersOne = transportTaskOne.Skip(separatorOne + 1).ToArray();
+            int[][] suppliesrAndCustOne = ConvertToIntArray(suppliersAndCustomersOne);
+
+
+
+
+            SeverZapad objOne = new SeverZapad(arrayTarOne, suppliesrAndCustOne);
+            objOne.RealizationAlg();
+
+
+
+            Trace.WriteLine(objOne.ToString());
+
+
+            File.WriteAllText(outputPath, $"{objOne.ToString()}");
+
+            Console.ReadKey();
+
+        }
+    }
+}

+ 33 - 0
source/repos/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs

@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
+// связанные с этой сборкой.
+[assembly: AssemblyTitle("ConsoleApp1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ConsoleApp1")]
+[assembly: AssemblyCopyright("Copyright ©  2024")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// из модели COM задайте для атрибута ComVisible этого типа значение true.
+[assembly: ComVisible(false)]
+
+// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM
+[assembly: Guid("e82d1faa-92c8-4bb1-ac57-07a5a774cc05")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Номер редакции
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 67 - 0
source/repos/ConsoleApp1/ConsoleApp1/SeverZapad.cs

@@ -0,0 +1,67 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Sz
+{
+    internal class SeverZapad
+    {
+        double[][] arrayTarif;
+        int[][] arrayDelivery;
+        int[] suppliers, customers;
+        double targetFunction;
+
+        public SeverZapad(double[][] arrayTarif, int[][] suppliersAndCustomers)
+        {
+            this.arrayTarif = arrayTarif;
+            arrayDelivery = new int[arrayTarif.Count()][];
+            for (int i = 0; i < arrayTarif.Count(); i++)
+                arrayDelivery[i] = new int[arrayTarif[i].Count()];
+            suppliers = suppliersAndCustomers[0];
+            customers = suppliersAndCustomers[1];
+        }
+
+        void TargetFunction()
+        {
+            for (int i = 0; i < arrayDelivery.Count(); i++)
+            {
+                for (int j = 0; j < arrayDelivery[i].Count(); j++)
+                {
+                    targetFunction += arrayDelivery[i][j] * arrayTarif[i][j];
+                }
+            }
+        }
+
+        public void RealizationAlg()
+        {
+            int i = 0, j = 0;
+            int delivery;
+            while (i < suppliers.Length & j < customers.Length)
+            {
+                delivery = Math.Min(suppliers[i], customers[j]);
+                suppliers[i] -= delivery;
+                customers[j] -= delivery;
+                arrayDelivery[i][j] = delivery;
+                if (suppliers[i] == 0) i++;
+                if (customers[j] == 0) j++;
+            }
+            TargetFunction();
+        }
+
+        public override string ToString()
+        {
+            string optPlan = string.Empty;
+            foreach (int[] line in arrayDelivery)
+            {
+                foreach (int item in line)
+                    optPlan += $"{item} ";
+                optPlan += "\n";
+            }
+
+            return $"{optPlan}\n{targetFunction}";
+        }
+    }
+}
+

BIN
source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe


+ 6 - 0
source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+    </startup>
+</configuration>

BIN
source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb


+ 5 - 0
source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/Trace and debug

@@ -0,0 +1,5 @@
+10 5 0 
+0 15 5 
+0 0 25 
+
+165

+ 5 - 0
source/repos/ConsoleApp1/ConsoleApp1/bin/Debug/output.txt

@@ -0,0 +1,5 @@
+10 5 0 
+0 15 5 
+0 0 25 
+
+165

+ 7 - 0
source/repos/ConsoleApp1/ConsoleApp1/input.txt

@@ -0,0 +1,7 @@
+5 3 1
+3 2 4
+4 1 2
+/
+15 20 25
+10 20 30
+-

+ 4 - 0
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

BIN
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache


+ 1 - 0
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+f5ea3da171c2addc5710945cf329fa0b441174e180edfd3c0f06c5947b00abda

+ 14 - 0
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt

@@ -0,0 +1,14 @@
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe
+C:\Users\РзаевЕР\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe
+D:\Rzaev_Examen\source\repos\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb

BIN
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe


BIN
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb


BIN
source/repos/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


+ 7 - 0
source/repos/ConsoleApp1/input.txt

@@ -0,0 +1,7 @@
+5 3 1
+3 2 4
+4 1 2
+/
+15 20 25
+10 20 30
+-