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

Обсуждение задачи 1527. Плохие дороги

Whether tests to a problem after Petrozavodsk have been changed?
Послано Burmistrov Ivan (USU) 19 фев 2007 00:23
It is very strange: I've got AC on snarknews.info (Doreshivanie), but on Timus I got Crash or WA # 9 :(
Re: Whether tests to a problem after Petrozavodsk have been changed?
Послано Vladimir Yakovlev (USU) 19 фев 2007 01:42
Timus Online Judge and Ejudge compile programs with different compilers with different command lines
Re: Whether tests to a problem after Petrozavodsk have been changed?
Послано Burmistrov Ivan (USU) 19 фев 2007 20:02
Oh, it is really super bug!
This code:
struct Pair
{
    int vert;
    int cost;

    bool operator < (const Pair & other) const
    {
        return ((vert < other.vert) || ((vert == other.vert)&&(cost < other.cost)));
    }

    bool operator == (const Pair & other) const
    {
        return ((vert == other.vert) && (cost == other.cost));
    }

    void set(int v, int c)
    {
        vert = v;
        cost = c;
    }
};
got WA # 9.

But this:
struct Pair
{
    int vert;
    int cost;

    bool operator < (const Pair & other) const
    {
        return ((vert < other.vert) || ((vert == other.vert)&&(cost < other.cost)));
    }

    bool operator == (const Pair & other) const
    {
        return ((vert == other.vert) && (cost == other.cost));
    }

    void set(int v, int c)
    {
        vert = v;
        cost = c;
    }

    void operator = (const Pair & other)
    {
        vert = other.vert;
        cost = other.cost;
    }
};

got Accepted!

Intel C++ compiler really differs from the others :)

Edited by author 19.02.2007 20:03
Re: Whether tests to a problem after Petrozavodsk have been changed?
Послано Alias (Alexander Prudaev) 5 мар 2007 22:39
yes, you are right. look at my motto :)

Edited by author 05.03.2007 22:40
Re: Whether tests to a problem after Petrozavodsk have been changed?
Послано KIRILL(ArcSTU) 5 мар 2007 23:00
No, server is good!:)