Skip to content

Instantly share code, notes, and snippets.

@laur3d
Created February 9, 2021 08:57
Show Gist options
  • Save laur3d/bdb1f31f3a6c58ec6a9ab25c1cee36e8 to your computer and use it in GitHub Desktop.
Save laur3d/bdb1f31f3a6c58ec6a9ab25c1cee36e8 to your computer and use it in GitHub Desktop.
class Solution
{
static void Main()
{
int L = int.Parse(Console.ReadLine());
int H = int.Parse(Console.ReadLine());
string Sentence = Console.ReadLine().ToUpper();
for (int i = 0; i < H; i++) {
string AsciiRow = Console.ReadLine();
foreach (char letter in Sentence)
{
int index = char.IsLetter(letter) ? letter - 'A' : 26;
Console.Write(AsciiRow.Substring(index*L,L));
}
Console.WriteLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment