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

Обсуждение задачи 1008. Кодирование изображений

P_Nyagolov Test 2 is incorrect! [2] // Задача 1008. Кодирование изображений 12 май 2015 16:26
The following code:

cin>>n;
for(i=1;i<=n;i++) {
  cin>>x[i]>>y[i];
  assert(x[i]>=1 && x[i]<=10 && y[i]>=1 && y[i]<=10);
  here[x[i]][y[i]]=true;
}

gives RTE, so test 2 is wrong. After, removing the assert, it gives WA :)
AGrigorii [Yaroslavl SU]🔥 Re: Test 2 is incorrect! // Задача 1008. Кодирование изображений 25 май 2015 17:45
Input
One representation of the image will be given to your program in the input.
Output
Your program has to write other representation of the image to the output.
P_Nyagolov писал(a) 12 мая 2015 16:26
The following code:

cin>>n;
for(i=1;i<=n;i++) {
  cin>>x[i]>>y[i];
  assert(x[i]>=1 && x[i]<=10 && y[i]>=1 && y[i]<=10);
  here[x[i]][y[i]]=true;
}

gives RTE, so test 2 is wrong. After, removing the assert, it gives WA :)
Khujamurod Murtozakulov Re: Test 2 is incorrect! // Задача 1008. Кодирование изображений 24 окт 2017 12:37
TEST 2 like this :
Input:
2 3
RT,
RT,
,
B,
,
.
Output:
6
2 3
2 4
3 3
3 4
4 2
4 3