ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1274. Fractional Arithmetic

One hint against WA
Posted by Oleg Strekalovsky [Vologda SPU] 4 May 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
Posted by Lebedev_Nicolay[Ivanovo SPU] 4 May 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
Posted by Vedernikoff Sergey (HSE: АОП) 5 May 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
Posted by Lebedev_Nicolay[Ivanovo SPU] 6 May 2009 00:02
Thanks! You helped me a lot.
Your tests are incorrect: answers do not fit limitations
Posted by Vladimir Yakovlev (USU) 13 May 2009 01:35
Re: Your tests are incorrect: answers do not fit limitations
Posted by Vedernikoff Sergey (HSE: АОП) 13 May 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
Posted by bsu.mmf.team 6 Mar 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
Posted by bsu.mmf.team 6 Mar 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
Posted by hoan 28 Nov 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.