add open
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Program", "Program\Program.csproj", "{4DF1B6F0-6429-4546-B3E3-74D50AA46C4F}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4DF1B6F0-6429-4546-B3E3-74D50AA46C4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4DF1B6F0-6429-4546-B3E3-74D50AA46C4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4DF1B6F0-6429-4546-B3E3-74D50AA46C4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4DF1B6F0-6429-4546-B3E3-74D50AA46C4F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,107 @@
|
||||
class PokemonStage
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
public int RequiredLevel { get; set; }
|
||||
public PokemonStage(string name, string type, int requiredLevel)
|
||||
{
|
||||
Name = name;
|
||||
Type = type;
|
||||
RequiredLevel = requiredLevel;
|
||||
}
|
||||
public void ShowInfo()
|
||||
{
|
||||
Console.WriteLine($"{Name} : {Type} : {RequiredLevel}");
|
||||
}
|
||||
}
|
||||
|
||||
class EvolutionNode
|
||||
{
|
||||
public PokemonStage Data;
|
||||
public EvolutionNode? Next;
|
||||
|
||||
public EvolutionNode(PokemonStage data)
|
||||
{
|
||||
Data = data;
|
||||
Next = null;
|
||||
}
|
||||
}
|
||||
|
||||
class EvolutionLine
|
||||
{
|
||||
public EvolutionNode? Head;
|
||||
public int Count;
|
||||
|
||||
public void AddFirst(PokemonStage stage)
|
||||
{
|
||||
EvolutionNode newNode = new EvolutionNode(stage);
|
||||
newNode.Next = Head;
|
||||
Head = newNode;
|
||||
Count++;
|
||||
}
|
||||
public void AddLast(PokemonStage stage)
|
||||
{
|
||||
|
||||
EvolutionNode newNode = new EvolutionNode(stage);
|
||||
|
||||
if (Head == null)
|
||||
{
|
||||
Head = newNode;
|
||||
}
|
||||
else
|
||||
{
|
||||
EvolutionNode current = Head;
|
||||
|
||||
while (current.Next != null)
|
||||
{
|
||||
current = current.Next;
|
||||
}
|
||||
|
||||
current.Next = newNode;
|
||||
}
|
||||
|
||||
|
||||
Count++;
|
||||
}
|
||||
|
||||
public void PrintAll()
|
||||
{
|
||||
Console.WriteLine("=== ЭВОЛЮЦИОННАЯ ЛИНИЯ ===");
|
||||
|
||||
EvolutionNode? current = Head;
|
||||
int number = 1;
|
||||
|
||||
while (current != null)
|
||||
{
|
||||
PokemonStage stage = current.Data;
|
||||
|
||||
int displayLevel = stage.RequiredLevel == 0
|
||||
? 1
|
||||
: stage.RequiredLevel;
|
||||
|
||||
Console.WriteLine(
|
||||
$"{number}. {stage.Name} (Ур. {displayLevel}, {stage.Type})");
|
||||
|
||||
number++;
|
||||
current = current.Next;
|
||||
}
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine($"Всего этапов: {Count}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
EvolutionLine line = new EvolutionLine();
|
||||
|
||||
line.AddLast(new PokemonStage("Чармандер", "огненный", 0));
|
||||
line.AddLast(new PokemonStage("Чармелеон", "огненный", 16));
|
||||
line.AddLast(new PokemonStage("Чаризард", "огненный/летающий", 36));
|
||||
|
||||
line.PrintAll();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v10.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v10.0": {
|
||||
"Program/1.0.0": {
|
||||
"runtime": {
|
||||
"Program.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Program/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net10.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "10.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 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("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+05013a85c347c24f994371c9d8ec9d5b7cfc4c23")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Program")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Program")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
57a841f04929bb6c2e75378351b91fc2357404fb64bfc957dd21b05e75579640
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net10.0
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v10.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property.EntryPointFilePath =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Program
|
||||
build_property.ProjectDir = Z:\чето\prog-Kazakov\algorithm\Program\Program\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 10.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using System;
|
||||
global using System.Collections.Generic;
|
||||
global using System.IO;
|
||||
global using System.Linq;
|
||||
global using System.Net.Http;
|
||||
global using System.Threading;
|
||||
global using System.Threading.Tasks;
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
354366ecb643d4e7e127d6aa744eaf2f4cccbef6e5ca7b9d75d0c5b94fa790d2
|
||||
@@ -0,0 +1,14 @@
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\bin\Debug\net10.0\Program.exe
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\bin\Debug\net10.0\Program.deps.json
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\bin\Debug\net10.0\Program.runtimeconfig.json
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\bin\Debug\net10.0\Program.dll
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\bin\Debug\net10.0\Program.pdb
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.GeneratedMSBuildEditorConfig.editorconfig
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.AssemblyInfoInputs.cache
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.AssemblyInfo.cs
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.csproj.CoreCompileInputs.cache
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.dll
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\refint\Program.dll
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.pdb
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\Program.genruntimeconfig.cache
|
||||
Z:\чето\prog-Kazakov\algorithm\Program\Program\obj\Debug\net10.0\ref\Program.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
60869dabccd61db68ce1dc5348c63c9b3c66045499b05a3881c5d168b6bdef25
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj",
|
||||
"projectName": "Program",
|
||||
"projectPath": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj",
|
||||
"packagesPath": "C:\\Users\\228p\\.nuget\\packages\\",
|
||||
"outputPath": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\228p\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net10.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"framework": "net10.0",
|
||||
"targetAlias": "net10.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "all"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.400"
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"framework": "net10.0",
|
||||
"targetAlias": "net10.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\228p\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\228p\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"version": 4,
|
||||
"targets": {
|
||||
"net10.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net10.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\228p\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj",
|
||||
"projectName": "Program",
|
||||
"projectPath": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj",
|
||||
"packagesPath": "C:\\Users\\228p\\.nuget\\packages\\",
|
||||
"outputPath": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\228p\\AppData\\Roaming\\NuGet\\NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net10.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"framework": "net10.0",
|
||||
"targetAlias": "net10.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "all"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.400"
|
||||
},
|
||||
"frameworks": {
|
||||
"net10.0": {
|
||||
"framework": "net10.0",
|
||||
"targetAlias": "net10.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "ZCM4dVr6DEc=",
|
||||
"success": true,
|
||||
"projectFilePath": "Z:\\чето\\prog-Kazakov\\algorithm\\Program\\Program\\Program.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
17921466949462898
|
||||
Reference in New Issue
Block a user