309335: CF1663E. Are You Safe?

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

E. Are You Safe?time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

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$.

ExampleInput
10
atzxcodera
mzhappyayc
mineodteri
trxesonaac
mtollexcxc
hjikeoutlc
eascripsni
rgvymnjcxm
onzazwswwg
geothermal
Output
YES

Input

暂时还没有翻译

加入题单

算法标签: