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

Обсуждение задачи 1274. Fractional Arithmetic

One hint against WA
Послано Oleg Strekalovsky [Vologda SPU] 4 май 2009 00:56
After my wrong AC tests were added
(Thanks to Fyodor Menshikov).
Many authors lost AC.The problem was with division to negative divisors.
(Example)
1/2
/
-1/3
Good luck!
Re: One hint against WA
Послано Lebedev_Nicolay[Ivanovo SPU] 4 май 2009 23:50
I have WA #30, but on your test and on same tests my solution give right answers. Can be there others tricks?
Another hint against WA
Послано Vedernikoff Sergey (HSE: АОП) 5 май 2009 04:29
Try these tests:

INPUT:
30000 29999/30000
*
30000 29999/30000

OUTPUT:
900059998 899940001/900000000

INPUT:
30000 29997/30000
/
1/29999

OUTPUT:
899999996 1/10000

Edited by author 05.05.2009 04:36
Re: Another hint against WA
Послано Lebedev_Nicolay[Ivanovo SPU] 6 май 2009 00:02
Thanks! You helped me a lot.
Your tests are incorrect: answers do not fit limitations
Послано Vladimir Yakovlev (USU) 13 май 2009 01:35
Re: Your tests are incorrect: answers do not fit limitations
Послано Vedernikoff Sergey (HSE: АОП) 13 май 2009 04:57
Yes, I see. But I achieved the target - helped to the guys to find their bugs and get AC =)
Re: Your tests are incorrect: answers do not fit limitations
Послано bsu.mmf.team 6 мар 2010 00:28
My program passed these tests, but it still has WA#29. (Before rejudge it has AC status). Does anybody have other hints or tests?
Re: Your tests are incorrect: answers do not fit limitations
Послано bsu.mmf.team 6 мар 2010 00:42
OUCH! But on test

30000 29999/30000
*
-30000 29999/30000

my prog outputs -20745377/900000000 instead of

-900059998 899940001/900000000

hmm... thank you for good tests, Vedernikoff Sergey :)

Now it's OK, just stupid mistake with labs function I saw with a help of this test. I don't know why it works wrong with long long numbers. I'll not use it anymore!

Edited by author 06.03.2010 01:05

Edited by author 06.03.2010 01:06
Re: One hint against WA
Послано hoan 28 ноя 2010 22:12
thanks, first i WA#26 but when i see your test got AC,
thanks, i dont forgot your help in all my life ;)
sorry for my poor english.