ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 2181. Студент, или Туда и обратно

Strange statement
Послано 🦄imosk72🦄[GTGU] 9 мар 2025 16:50
> The student’s home is located at the coordinates (1, 1), and the university is at the coordinates (N, M).
It means, for example, if N == 1 && M == 1 then university have same coordinates as home. Of course we can not use any roads in such case. But according to the sentence:
> There are a total of N streets running from north to south and M streets running from west to east.
there are some roads that can not be used. I think there should be N - 1 streets running from north to south and M - 1 streets running from west to east.