ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Linear Data Structures: Arrays > задача:


50594 - Transformimet

Гость
• Вопросы к жюри (1)

Задачи раздела

• 51131 - Running After a Thief
• 51143 - Departments Competition
• 50994 - The Most Crowded Station
• 51118 - Place 7 to the 5th position
• 51132 - Problem Solving Competition
• 51121 - Complexity power of a nu...
• 51119 - Evaluating Prefix expressions
• 50563 - Modul i gjate
• 50594 - Transformimet
• 51182 - Count and Sum 2
• 51193 - The max element of k-th co...
• 51194 - The difference between max...
• 51196 - The sum of two arrays
• 51197 - Even and odd Numbers
• s
• 50423 - Numbers square
• 50344 - Profit or Loss

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

Transformimet (Olimpiada USACO)

English

Nje dizajn katror me pllaka te zeza dhe te bardha transformohet ne nje katror tjeter. Shkruani nje program qe dallon transformimin minimal qe i eshte bere nje dizajni te dhene sipas listes se poshtme te transformimeve te mundshme:

    ROTATED 90 DEGREES: Dizajni eshte rrotulluar 90 grade djathtas.
    ROTATED 180 DEGREES: Dizajni eshte rrotulluar 180 grade djathtas.
    ROTATED 270 DEGREES: Dizajni eshte rrotulluar 270 grade djathtas.
    VERTICAL REFLECTION: Dizajni eshte reflektuar vertikalisht.
    NOT TRANSFORMED: Dizajni origjinal nuk eshte ndryshuar.
    IMPROPER TRANSFORMATION: Dizajni i ri nuk eshte perftuar me asnje nga metodat e mesiperme.

Test Case 1:
Input:
5
X...X ....X
.X... ...X.
...X. .X...
..X.X ..X..
....X XX..X

Output:
ROTATED 90 DEGREES


Test Case 2:
Input:
2
X. X.
.X .X

Output:
NOT TRANSFORMED


Test Case 3:
Input:
5
X.... .X...
.X... ..X..
.X... ..X..
...X. ....X
....X X....

Output:
IMPROPER TRANSFORMATION


Specifikimi i inputit
Do te jepet nje numer (n) ne reshtin e pare ku 1 < n <= 10. n reshtat qe vijojne do kene 2 dizajne ku cho resht eshte i perbere nga karakteret (.) ose (X).

Specifikimi i outputit
Tregoni vetem nje nga mesazhet e transformimit te dhena me siper.
Do te jete vetem nje transformim.

Для отправки решений необходимо выполнить вход.

www.contester.ru