Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace asciiart
- {
- class Solution
- {
- static void Main(string[] args)
- {
- string[,] letters;
- int L = int.Parse(Console.ReadLine());
- int H = int.Parse(Console.ReadLine());
- letters = new string[27,H];
- string T = Console.ReadLine();
- T = T.ToUpper();
- for (int i = 0; i < H; i++)
- {
- string Row = Console.ReadLine();
- for (int j = 0; j < 27; j++)
- {
- letters[j, i] = Row.Substring(j * L, L);
- }
- }
- for (int i = 0; i < H; i++)
- {
- string Result = "";
- for (int j = 0; j < T.Length; j++)
- {
- int k = ((int)T[j] - (int)'A');
- if (k >= 0 && k <= 25) {
- Result = Result + letters[k, i];
- } else
- {
- Result = Result + letters[26, i];
- }
- }
- Console.WriteLine(Result);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement