|
|
вернуться в форумOne hint against WA 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 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 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 Thanks! You helped me a lot. Your tests are incorrect: answers do not fit limitations Re: Your tests are incorrect: answers do not fit limitations 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 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 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. |
|
|