Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official. ×

02. Labyrinth-2
time limit per test
8 seconds
memory limit per test
512 megabytes
input
standard input
output
standard output

See the problem statement here: http://codeforces.com/contest/921/problem/01.