TODO finish

This commit is contained in:
szabomarton 2024-09-06 11:15:44 +02:00
parent a65445d666
commit 1bd4104c41

View File

@ -129,7 +129,18 @@ namespace HegyekMO
public static void Feladat8()
{
Dictionary<Hegy, int>
Dictionary<string, int> Csoportositotthegyek = new Dictionary<string, int>();
foreach (var item in Data.hegyek)
{
if (!Csoportositotthegyek.ContainsKey(item.Hegyseg))
{
Csoportositotthegyek.Add(item.Hegyseg, 1);
}
else
{
Csoportositotthegyek[item.Hegyseg]++;
}
}
}