theme changed

This commit is contained in:
nik
2025-09-30 08:21:09 +03:00
parent 4c261f7def
commit 8bd93df2ae
917 changed files with 15023 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,87 @@
using System;
public class Program
{
static int SumPos(int[] a)
{
int r = 0;
foreach (int x in a) if (x > 0) r += x;
return r;
}
static int SumNeg(int[] a)
{
int r = 0;
foreach (int x in a) if (x < 0) r += x;
return r;
}
static int SumArr(int[] a) => SumPos(a) + SumNeg(a);
static double AvgArr(int[] a) => a.Length == 0 ? double.NaN : (double)SumArr(a) / a.Length;
static int SumEvenPos(int[] a)
{
int r = 0;
for (int i = 0; i < a.Length; i += 2) r += a[i];
return r;
}
static int SumOddPos(int[] a)
{
int r = 0;
for (int i = 1; i < a.Length; i += 2) r += a[i];
return r;
}
static int MaxIdx(int[] a)
{
if (a.Length == 0) return -1;
int idx = 0, m = a[0];
for (int i = 1; i < a.Length; i++)
if (a[i] > m) { m = a[i]; idx = i; }
return idx;
}
static int MinIdx(int[] a)
{
if (a.Length == 0) return -1;
int idx = 0, m = a[0];
for (int i = 1; i < a.Length; i++)
if (a[i] < m) { m = a[i]; idx = i; }
return idx;
}
static int ProductBetweenMinMax(int[] a)
{
int start = MinIdx(a), end = MaxIdx(a);
if (start == -1 || end == -1) return -1;
if (start > end) { int t = start; start = end; end = t; }
if (end - start <= 1) return -1;
int r = 1;
for (int i = start + 1; i < end; i++) r *= a[i];
return r;
}
public static void Main(string[] args)
{
Console.Write("input an arr length: ");
int n = int.Parse(Console.ReadLine());
int[] arr = new int[n];
for (int i = 0; i < arr.Length; i++)
{
Console.Write("arr[{0}] = ", i);
arr[i] = int.Parse(Console.ReadLine());
}
Console.WriteLine("sum of the array's elements is {0}", SumArr(arr));
Console.WriteLine("avg value of the array is {0}", AvgArr(arr));
Console.WriteLine("sum of positive array values is {0}, sum of negative array values is {1}", SumPos(arr), SumNeg(arr));
Console.WriteLine("sum of elements on even positions is {0}, sum of elements on odd positions is {1}", SumEvenPos(arr), SumOddPos(arr));
Console.WriteLine("index of max array element is {0}", MaxIdx(arr));
Console.WriteLine("index of min array element is {0}", MinIdx(arr));
Console.WriteLine("product of numbers between min and max is {0}", ProductBetweenMinMax(arr));
}
}

Binary file not shown.

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"ArrayProcess/1.0.0": {
"runtime": {
"ArrayProcess.dll": {}
}
}
}
},
"libraries": {
"ArrayProcess/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

View File

@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@@ -0,0 +1,73 @@
{
"format": 1,
"restore": {
"/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj": {}
},
"projects": {
"/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj",
"projectName": "ArrayProcess",
"projectPath": "/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/ArrayProcess/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -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)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/nik/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -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" />

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

View File

@@ -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("ArrayProcess")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c467e61be36ba28401de8950c829e3f753a634c")]
[assembly: System.Reflection.AssemblyProductAttribute("ArrayProcess")]
[assembly: System.Reflection.AssemblyTitleAttribute("ArrayProcess")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
bc1a894a07e31dbe1db6119b8c6b5279570fae72bc5f8b74a790bdc4b9be740a

View File

@@ -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 = ArrayProcess
build_property.ProjectDir = /home/nik/oop/labs/lab5/ArrayProcess/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -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;

View File

@@ -0,0 +1 @@
f938326882807c5adf4897670d20ed14ffc9ca82b09145183737ae80fdead58f

View File

@@ -0,0 +1,14 @@
/home/nik/oop/labs/lab5/ArrayProcess/bin/Debug/net9.0/ArrayProcess
/home/nik/oop/labs/lab5/ArrayProcess/bin/Debug/net9.0/ArrayProcess.deps.json
/home/nik/oop/labs/lab5/ArrayProcess/bin/Debug/net9.0/ArrayProcess.runtimeconfig.json
/home/nik/oop/labs/lab5/ArrayProcess/bin/Debug/net9.0/ArrayProcess.dll
/home/nik/oop/labs/lab5/ArrayProcess/bin/Debug/net9.0/ArrayProcess.pdb
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.GeneratedMSBuildEditorConfig.editorconfig
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.AssemblyInfoInputs.cache
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.AssemblyInfo.cs
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.csproj.CoreCompileInputs.cache
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.dll
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/refint/ArrayProcess.dll
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.pdb
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ArrayProcess.genruntimeconfig.cache
/home/nik/oop/labs/lab5/ArrayProcess/obj/Debug/net9.0/ref/ArrayProcess.dll

View File

@@ -0,0 +1 @@
1c60a15cf2f24d58cb1e6ea8e943d82b4a6455334a8d210a750368ceb6e13d26

Binary file not shown.

View File

@@ -0,0 +1,78 @@
{
"version": 3,
"targets": {
"net9.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net9.0": []
},
"packageFolders": {
"/home/nik/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj",
"projectName": "ArrayProcess",
"projectPath": "/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/ArrayProcess/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,10 @@
{
"version": 2,
"dgSpecHash": "eoTf7zVqGRY=",
"success": true,
"projectFilePath": "/home/nik/oop/labs/lab5/ArrayProcess/ArrayProcess.csproj",
"expectedPackageFiles": [
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
],
"logs": []
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

16
labs/lab5/Loop/Program.cs Normal file
View File

@@ -0,0 +1,16 @@
using System;
public class Program
{
public static void Main(string[] args)
{
int[] myArray = {100, 1, 32, 3, 14, 25, 6, 17, 8, 99};
int n = 10;
for (int i = 0; i < n; i++)
{
if (myArray[i] % 2 == 0) myArray[i] = 0;
Console.Write(myArray[i] + " ");
}
}
}

Binary file not shown.

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"Loop/1.0.0": {
"runtime": {
"Loop.dll": {}
}
}
}
},
"libraries": {
"Loop/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

View File

@@ -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("Loop")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c467e61be36ba28401de8950c829e3f753a634c")]
[assembly: System.Reflection.AssemblyProductAttribute("Loop")]
[assembly: System.Reflection.AssemblyTitleAttribute("Loop")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
1070bb8c4c9a8f6f529c7a07fc0f64d121b3b127848afda335954ff51143bd26

View File

@@ -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 = Loop
build_property.ProjectDir = /home/nik/oop/labs/lab5/Loop/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -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;

Binary file not shown.

View File

@@ -0,0 +1 @@
eb652d3648ca123ec0f2e76e9ac62039c34b354d5c7aa7386f7cb989ddbaddae

View File

@@ -0,0 +1,14 @@
/home/nik/oop/labs/lab5/Loop/bin/Debug/net9.0/Loop
/home/nik/oop/labs/lab5/Loop/bin/Debug/net9.0/Loop.deps.json
/home/nik/oop/labs/lab5/Loop/bin/Debug/net9.0/Loop.runtimeconfig.json
/home/nik/oop/labs/lab5/Loop/bin/Debug/net9.0/Loop.dll
/home/nik/oop/labs/lab5/Loop/bin/Debug/net9.0/Loop.pdb
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.GeneratedMSBuildEditorConfig.editorconfig
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.AssemblyInfoInputs.cache
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.AssemblyInfo.cs
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.csproj.CoreCompileInputs.cache
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.dll
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/refint/Loop.dll
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.pdb
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/Loop.genruntimeconfig.cache
/home/nik/oop/labs/lab5/Loop/obj/Debug/net9.0/ref/Loop.dll

Binary file not shown.

View File

@@ -0,0 +1 @@
80d5336fbae4a9a2b9356312372910c8de9cd2c606670952ed72d8a4f9121ba3

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,73 @@
{
"format": 1,
"restore": {
"/home/nik/oop/labs/lab5/Loop/Loop.csproj": {}
},
"projects": {
"/home/nik/oop/labs/lab5/Loop/Loop.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/Loop/Loop.csproj",
"projectName": "Loop",
"projectPath": "/home/nik/oop/labs/lab5/Loop/Loop.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/Loop/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -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)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/nik/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -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" />

View File

@@ -0,0 +1,78 @@
{
"version": 3,
"targets": {
"net9.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net9.0": []
},
"packageFolders": {
"/home/nik/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/Loop/Loop.csproj",
"projectName": "Loop",
"projectPath": "/home/nik/oop/labs/lab5/Loop/Loop.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/Loop/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,10 @@
{
"version": 2,
"dgSpecHash": "XmTFlNb64zI=",
"success": true,
"projectFilePath": "/home/nik/oop/labs/lab5/Loop/Loop.csproj",
"expectedPackageFiles": [
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
],
"logs": []
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,60 @@
using System;
public class Program
{
public static void Main(string[] args)
{
int[,] m1 = new int[2, 2];
int[,] m2 = new int[2, 2];
fillQuadraticMatrix(ref m1, 2);
fillQuadraticMatrix(ref m2, 2);
int[,] res = multiplyQuadraticMatrix(m1, m2, 2);
printQuadraticMatrix(res, 2);
}
static void fillQuadraticMatrix(ref int[,] m, int n)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
Console.Write("m[{0}][{1}] = ", i, j);
m[i, j] = int.Parse(Console.ReadLine());
}
}
}
static void printQuadraticMatrix(int[,] m, int n)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
Console.Write(m[i, j] + " ");
}
Console.Write("\n");
}
}
static int[,] multiplyQuadraticMatrix(int[,] m1, int[,] m2, int n)
{
int[,] res = new int[n, n];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
for (int k = 0; k < n; k++)
{
res[i, j] += m1[i, k] * m2[k, j];
}
}
}
return res;
}
}

Binary file not shown.

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"MatrixMultiply/1.0.0": {
"runtime": {
"MatrixMultiply.dll": {}
}
}
}
},
"libraries": {
"MatrixMultiply/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

View File

@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

View File

@@ -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("MatrixMultiply")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c467e61be36ba28401de8950c829e3f753a634c")]
[assembly: System.Reflection.AssemblyProductAttribute("MatrixMultiply")]
[assembly: System.Reflection.AssemblyTitleAttribute("MatrixMultiply")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
04331c49f921a7429aefb22e34852167176cc0eb6eff54ff74fdc32820c402f8

View File

@@ -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 = MatrixMultiply
build_property.ProjectDir = /home/nik/oop/labs/lab5/MatrixMultiply/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -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;

View File

@@ -0,0 +1 @@
ea88fc3b550f6a964ea47b632e984ea30472c127dca7d28d99c9c330d5105556

View File

@@ -0,0 +1,14 @@
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.GeneratedMSBuildEditorConfig.editorconfig
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.AssemblyInfoInputs.cache
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.AssemblyInfo.cs
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.csproj.CoreCompileInputs.cache
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.deps.json
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.runtimeconfig.json
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.dll
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.pdb
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.dll
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/refint/MatrixMultiply.dll
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.pdb
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.genruntimeconfig.cache
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/ref/MatrixMultiply.dll

View File

@@ -0,0 +1 @@
12158eafecee62b11e7f6cd701788e6b2fc3b191f4f67e264c2c0f0daea4e326

Binary file not shown.

View File

@@ -0,0 +1,73 @@
{
"format": 1,
"restore": {
"/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj": {}
},
"projects": {
"/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"projectName": "MatrixMultiply",
"projectPath": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/MatrixMultiply/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -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)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/nik/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -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" />

View File

@@ -0,0 +1,78 @@
{
"version": 3,
"targets": {
"net9.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net9.0": []
},
"packageFolders": {
"/home/nik/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"projectName": "MatrixMultiply",
"projectPath": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/MatrixMultiply/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,10 @@
{
"version": 2,
"dgSpecHash": "jGUAOCUgnWY=",
"success": true,
"projectFilePath": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"expectedPackageFiles": [
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
],
"logs": []
}

View File

@@ -0,0 +1,21 @@
using System;
public class Program
{
public static void Main(string[] args)
{
int[] myArray;
Console.WriteLine("input an amount of elements: ");
int n = int.Parse(Console.ReadLine());
Console.WriteLine("input elements one by one: ");
myArray = new int[n];
for (int i = 0; i < myArray.Length; ++i)
{
Console.Write("a[{0}] = ", i);
myArray[i] = int.Parse(Console.ReadLine());
}
foreach (int x in myArray) Console.Write("{0} ", x);
}
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

Binary file not shown.

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"SizedArray/1.0.0": {
"runtime": {
"SizedArray.dll": {}
}
}
}
},
"libraries": {
"SizedArray/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

View File

@@ -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("SizedArray")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c467e61be36ba28401de8950c829e3f753a634c")]
[assembly: System.Reflection.AssemblyProductAttribute("SizedArray")]
[assembly: System.Reflection.AssemblyTitleAttribute("SizedArray")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
50a6401786029a369d4616ae5d05fce5406774fba42aa69511c9f626f3418aa4

View File

@@ -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 = SizedArray
build_property.ProjectDir = /home/nik/oop/labs/lab5/SizedArray/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -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;

View File

@@ -0,0 +1 @@
3d92d4016286ac84cd7834883d0b1a61e827699b3c6f3f23780c75298aff251f

View File

@@ -0,0 +1,14 @@
/home/nik/oop/labs/lab5/SizedArray/bin/Debug/net9.0/SizedArray
/home/nik/oop/labs/lab5/SizedArray/bin/Debug/net9.0/SizedArray.deps.json
/home/nik/oop/labs/lab5/SizedArray/bin/Debug/net9.0/SizedArray.runtimeconfig.json
/home/nik/oop/labs/lab5/SizedArray/bin/Debug/net9.0/SizedArray.dll
/home/nik/oop/labs/lab5/SizedArray/bin/Debug/net9.0/SizedArray.pdb
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.GeneratedMSBuildEditorConfig.editorconfig
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.AssemblyInfoInputs.cache
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.AssemblyInfo.cs
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.csproj.CoreCompileInputs.cache
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.dll
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/refint/SizedArray.dll
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.pdb
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/SizedArray.genruntimeconfig.cache
/home/nik/oop/labs/lab5/SizedArray/obj/Debug/net9.0/ref/SizedArray.dll

Binary file not shown.

View File

@@ -0,0 +1 @@
47dbcb6bbe915fbac1f816be1661e913bb1cb6bbee55dd56a5c3451be106b847

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,73 @@
{
"format": 1,
"restore": {
"/home/nik/oop/labs/lab5/SizedArray/SizedArray.csproj": {}
},
"projects": {
"/home/nik/oop/labs/lab5/SizedArray/SizedArray.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/SizedArray/SizedArray.csproj",
"projectName": "SizedArray",
"projectPath": "/home/nik/oop/labs/lab5/SizedArray/SizedArray.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/SizedArray/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More