Created
February 9, 2021 08:57
-
-
Save laur3d/bdb1f31f3a6c58ec6a9ab25c1cee36e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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