fix al palindromo **MIND SIZE: ANGELIC**
This commit is contained in:
parent
c485179de4
commit
5c28d72c77
@ -117,6 +117,12 @@ class Program {
|
|||||||
char[] chars = stringa.ToCharArray();
|
char[] chars = stringa.ToCharArray();
|
||||||
byte[] bytes = new byte[chars.Length];
|
byte[] bytes = new byte[chars.Length];
|
||||||
|
|
||||||
|
for (int i = 0; i < chars.Length; i++) { //se il valore intero del singolo char è superiore al valore massimo di byte
|
||||||
|
if (Convert.ToUInt64(chars[i]) > Byte.MaxValue) {
|
||||||
|
chars[i] = Convert.ToChar(200); //lo sostituisco con un carattere a caso che è convertibile in byte, per non rompere la conversione successiva
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < chars.Length; i++) {
|
for (int i = 0; i < chars.Length; i++) {
|
||||||
bytes[i] = Convert.ToByte(chars[i]);
|
bytes[i] = Convert.ToByte(chars[i]);
|
||||||
}
|
}
|
||||||
@ -219,7 +225,7 @@ class Program {
|
|||||||
lettere[j] = p_lettera2;
|
lettere[j] = p_lettera2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Join("", lettere);
|
return string.Join("", lettere);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,10 +13,10 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("strings_2")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("strings_2")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c3221a26e7024becb1a0bc5ca23f9d5951939a0e")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c485179de4f282de45beb0f7d4860f49264ae15c")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("strings_2")]
|
[assembly: System.Reflection.AssemblyProductAttribute("strings_2")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("strings_2")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("strings_2")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
// Generated by the MSBuild WriteCodeFragment class.
|
// Generato dalla classe WriteCodeFragment di MSBuild.
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
286555a28e2b9519ad213c06727318c7aaa3c8f73011ee3c1eb75939a096b603
|
37bc26bc3a12bdfd7035317c818bc790bd05aef4e0e1da67c548b475df3f0a61
|
||||||
|
|||||||
Binary file not shown.
@ -1 +1 @@
|
|||||||
4ef1c6e281a4279efbe6a93ea283d646bf9f249445f7fe51ef3162564a07b622
|
db9d59f3f1e01603ca0db2532b95debe9b6ee3fc1ae01815ceaef6628a6d1799
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -44,7 +44,7 @@
|
|||||||
"auditLevel": "low",
|
"auditLevel": "low",
|
||||||
"auditMode": "direct"
|
"auditMode": "direct"
|
||||||
},
|
},
|
||||||
"SdkAnalysisLevel": "9.0.100"
|
"SdkAnalysisLevel": "9.0.200"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net9.0": {
|
"net9.0": {
|
||||||
@ -65,7 +65,7 @@
|
|||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.102/PortableRuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.200/PortableRuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "0XXWvIaAHRU=",
|
"dgSpecHash": "EUX3oFtxQ78=",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "/home/Verde/git/strings_2/strings_2.csproj",
|
"projectFilePath": "/home/Verde/git/strings_2/strings_2.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
"auditLevel": "low",
|
"auditLevel": "low",
|
||||||
"auditMode": "direct"
|
"auditMode": "direct"
|
||||||
},
|
},
|
||||||
"SdkAnalysisLevel": "9.0.100"
|
"SdkAnalysisLevel": "9.0.200"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net9.0": {
|
"net9.0": {
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.102/PortableRuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.200/PortableRuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/Verde/.nuget/packages/</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/Verde/.nuget/packages/</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/Verde/.nuget/packages/</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/Verde/.nuget/packages/</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.13.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="/home/Verde/.nuget/packages/" />
|
<SourceRoot Include="/home/Verde/.nuget/packages/" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user