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

Обсуждение задачи 1025. Демократия в опасности

Is there a bug in the checking system?
Послано V@n0 1 фев 2012 01:24
1st variant:

[code deleted]

Result: WA

My 2nd variant:

[code deleted]

Result: accepted.

The difference is in "For" cycle which I separated with two blank lines. The rest part of code is the same in both variants. I can't understand why my 1st variant wasn't accepted. In my opinion there is no difference between these examples:

a = b/2 + 1;

and

a = (b + 1)/2;

if b > 0, is odd and has int type. Where is a mistake?

Edited by author 01.02.2012 01:27

Edited by author 02.02.2012 00:24

Edited by moderator 20.11.2019 00:17
Re: Is this a bug in the checking system?
Послано Sandro (USU) 1 фев 2012 11:59
The first code gets AC too. Try to submit it. There was another code (with bug) in your submit № 4100318.
Re: Is this a bug in the checking system?
Послано V@n0 2 фев 2012 00:22
You are right. Thanks. )) I hurried and was inattentive. But how can you see my submits? )) I tried to open someone's solutions but I couldn't. Why?
Re: Is this a bug in the checking system?
Послано Smilodon_am [Obninsk INPE] 3 фев 2012 11:18
Sandro is an administrator of this site.