public const int MaxLen = 10001;
public static int GetMaxPoints(int[] nums)
var count = new int[MaxLen];
int next = 0, previous = 0, current = 0;
for(int i = 0; i < MaxLen; i++)
next = Math.Max(previous + count[i], current);
public static void Main()
Console.WriteLine("UniLecs");
Console.WriteLine(GetMaxPoints(new int[] { 3, 4, 2 }).ToString());
Console.WriteLine(GetMaxPoints(new int[] { 2, 2, 3, 3, 3, 4 }).ToString());