Compare Pastes

Differences between the pastes #224672 (07.10.2021 01:47) and #275484 (11.06.2024 21:21).
1
Your program should get two parameters from command line:
2
-string size N^2, that describes square matrix of characters N*N;
3
-string that describes given word.
4
5
The first string is converting to matrix using the following rule. String "QWEASDZXC" forms the matrix:
6
['Q','W','E',
7
 'A','S','D',
8
 'Z','X','C']
9
10
Yor program should print to the console the sequence of cells those build the given word.
11
Every next character of word can be placed just in the neightbor cell: on the top, on the bottom, on the left or on the right from the cell with previous character.
1
подоконники https://mosfenster.ru/innovations
2
 
3
под ключ: от 12950 ?/м? 
4
С этим еще ищут: 
5
Воплощаем мечты о комфортной жизни https://mosfenster.ru/contacts
6
 
7
Именно поэтому мы любим независимые площадки по обмену мнениями, например, Яндекс https://mosfenster.ru/services/remont-okon-v-mitishah
8
 Маркет и Отзовик и irecommend https://mosfenster.ru/services/repair-restoration-window
9
 
10
Теплозащита https://mosfenster.ru/osteklenie_domov/osteklenie_doma_iz_betona
11
 
12
13
E.g. if it is given matrhix "QLGNAEKIRLRNGEAE" and word "KING", then sequence of cells will be [1,2]->[1,3]->[0,3]->[0,2]
14