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

Обсуждение задачи 1466. Магический квадрат

Please add these tests.
Послано Arthas 19 май 2009 07:14
3 5
1 4 5
7 3 8
2 4 4
7 5 3
7 7 0

3 5
2 5 1
5 3 4
3 8 8
8 6 0
6 6 1
I got tle on these tests.But I got AC.
Re: Please add these tests.
Послано 👨🏻‍💻 Spatarel Dan Constantin 2 авг 2019 18:42
My AC solution outputs "NO" on both of those test cases.
Re: Please add these tests.
Послано Igor Parfenov 9 июл 2026 19:16
Answer to second test is YES. And, moreover, there are 840 ways to fill the square.

Upd. Sorry, forgot about constraint a[0][0]=0. (But, if ignore it, 840 is correct number.)

Edited by author 09.07.2026 19:19