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 1283. Dwarf

What's up with this problem? Why WA on #4 test?
Posted by Intelligent_Design 23 Oct 2006 01:26
Hello!
I've tried to do this problem in 2 different ways with different formulaes, on Pascal and C++ as languages...
But in both cases,I got WA on the 4th test!
Is there any test I should try?
What I tried are sample tests, and 10 5 50.00 -> 1...
Everything was OK with them.
Re: What's up with this problem? Why WA on #4 test?
Posted by Fyodor Menshikov 27 Oct 2006 11:28
In the 4th test first number is less than second, probably your program outputs negative number.