public const int MaxYear = 2051;
public const int MinYear = 1950;
public static int FindMaxPopulationYear(int[][] logs) {
int[] year = new int[MaxYear];
foreach (var log in logs)
int maxNum = year[MinYear], maxYear = MinYear;
for(int i = MinYear + 1; i < year.Length; i++)
public static void Main()
Console.WriteLine("UniLecs");
new int[] { 1992, 1998 },
Console.WriteLine(FindMaxPopulationYear(arr).ToString());
new int[] { 1950, 1961 },
new int[] { 1960, 1971 },
Console.WriteLine(FindMaxPopulationYear(arr).ToString());