Preparando MOJI

Are You Safe?

1000ms 262144K

Description:

Seven boys and seven girls from Athens were brought before King Minos. The evil king laughed and said "I hope you enjoy your stay in Crete".

With a loud clang, the doors behind them shut, and darkness reigned. The terrified children huddled together. In the distance they heard a bellowing, unholy roar.

Bravely, they advanced forward, to their doom.

Input:

$$$n$$$ ($$$1 \le n \le 100$$$) — the dimensions of the labyrinth.

Each of the next $$$n$$$ lines contains a string of lowercase English letters of length $$$n$$$.

Sample Input:

10
atzxcodera
mzhappyayc
mineodteri
trxesonaac
mtollexcxc
hjikeoutlc
eascripsni
rgvymnjcxm
onzazwswwg
geothermal

Sample Output:

YES

Informação

Codeforces

Provedor Codeforces

Código CF1663E

Tags

*specialimplementation

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 10:23:59

Relacionados

Nada ainda