using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
var a = getFills(new List<string>()
{"aabba", "aabba", "aaacb", "acccb"});
public static int getFills(List<string> pictures)
int row = pictures.Count(), m = 0;
int col = pictures.First().ToCharArray().Count();
char[, ] s = new char[row, col];
for (int i = 0; i < row; i++)
string str = pictures[i];
for (int j = 0; j < col; j++)
for (int i = 0; i < row; i++)
for (int j = 0; j < col; j++)
for (int i = 0; i < row; i++)
for (int j = 0; j < col; j++)
else if (i == 0 && j > 0)
if (s[i, j] == s[i, j - 1])
else if (i > 0 && j == 0)
if (s[i, j] == s[i - 1, j])
if (s[i, j] == s[i - 1, j] || s[i, j] == s[i, j - 1])
else if(j + 1 < col && s[i, j] == s[i, j + 1])